A domain-constrained oversampling technique can improve binary next-day rainfall prediction in severely imbalanced multi-station weather datasets while eliminating physically unrealistic synthetic training records, according to an experimental benchmarking study published in Frontiers in Environmental Science. Conducted by Balaji V and Sivagami M at the Vellore Institute of Technology in Chennai, India, the study introduced Location-Matched and Adaptive Feature Constraints SMOTE (LM-AFC-SMOTE) and tested it across 126 combinations of seven machine learning classifiers, six oversampling methods, and three daily meteorological datasets. Among all evaluated configurations, pairing Random Forest with LM-AFC-SMOTE on the most imbalanced regional dataset—covering Tamil Nadu and Puducherry—was the only combination that simultaneously improved accuracy, precision, recall, and F1-score over standard SMOTE, reaching 95.31 percent accuracy, an F1-score of 0.384, and a Macro F1-score of 0.680. Across the other two datasets, gains were smaller and varied by classifier and metric.
The study addresses a persistent challenge in meteorological classification: dry days typically outnumber rainy days by a wide margin. When trained on skewed records, conventional classifiers often favor the majority non-rainfall class, achieving high overall accuracy while failing to detect many actual rain events. Standard oversampling techniques—including SMOTE, Borderline-SMOTE, Adaptive Synthetic Sampling (ADASYN), KMeans-SMOTE, and Geometric SMOTE—counter this imbalance by generating synthetic minority-class samples via linear interpolation between neighboring rain observations in feature space. However, the authors identify two limitations in multi-station weather datasets. First, these methods search for nearest neighbors across the entire training set without geographic context, potentially combining atmospheric conditions from climatically distinct locations. Second, they apply a uniform interpolation strategy across all numerical variables, ignoring physical limits governing humidity, cloud cover, pressure, wind speed, visibility, and precipitation, which can yield meteorologically unrealistic training data.
To test whether geographic and physical constraints mitigate these issues, the researchers evaluated their framework independently across three daily meteorological datasets differing in volume, climate, and class imbalance. The primary dataset, Weather_TN_PY, was compiled from the 12-kilometer Indian Monsoon Data Assimilation and Analysis (IMDAA) regional reanalysis produced by the National Centre for Medium Range Weather Forecasting. It contains 4,603,200 daily records from January 1, 2019, to December 31, 2024, covering 2,100 grid points mapped to 512 cities and 40 districts in Tamil Nadu and Puducherry, with 34 variables, 193,374 rain instances, and 4,409,826 no-rain instances—an imbalance ratio of roughly 23 to 1. For benchmarking and independent validation, the team used the Australian Bureau of Meteorology WeatherAUS dataset (149,523 valid records from 49 stations, November 2007 to June 2017; 33,631 rain and 115,892 no-rain days) and the Weche_vitcc sensor dataset from VIT Chennai (123,327 daily records, 2008 to 2017; 27,198 rain and 96,129 no-rain days).
Each dataset underwent tailored quality control and a chronological split to prevent future data from leaking into training. For Weather_TN_PY, hourly IMDAA NetCDF files were aggregated into daily records, standardized to ISO 8601 dates, and cleaned of boundary dates outside the study window, leaving missing observations on 29 days in 2021, one day in 2022, and 73 days in 2023 (216,300 location-day records). Those gaps were reconstructed using Spatio-Temporal Inverse Distance Weighting with Haversine surface distances, drawing only from past or current observations among the eight nearest neighbors within one day, or three days if fewer were available. WeatherAUS missing entries were imputed with the mode for wind direction and the median for continuous features, while future rainfall amounts were excluded from Weche_vitcc. Weather_TN_PY used 2019–2022 for training, 2023 for validation, and 2024 for testing; WeatherAUS and Weche_vitcc used 2009–2014, 2015, and 2016–2017, with oversampling applied strictly to training sets at a 1:1 ratio.
LM-AFC-SMOTE modifies standard SMOTE through two mechanisms. First, for location-matched neighbor selection, continuous features of minority training observations are standardized using Z-scores computed solely from the minority class to find five nearest neighbors while keeping original values for synthesis. Whenever available, the algorithm pairs a seed sample with a neighbor from the same station or grid point, falling back to the nearest valid minority observation from another site only if none exists; categorical variables such as RainToday are preserved from the seed. Second, adaptive feature constraints assign each continuous variable a specific interpolation range. Signed variables including temperatures and directional wind components follow Rule A (-1.0 to +1.0). Bounded atmospheric variables such as relative humidity, percentage cloud cover, and surface or sea-level pressure follow Rule B (-0.5 to +0.5), while fractional cloud cover (VLCDC_atmc) follows Rule B+ with clipping to zero through one. Non-negative magnitudes—including precipitation, wind gust, visibility, and soil moisture—follow Rule C (zero to +1.0), followed by post-synthesis physical screening applied only to synthetic samples.
The researchers benchmarked LM-AFC-SMOTE against SMOTE, Borderline-SMOTE, ADASYN, KMeans-SMOTE, and Geometric SMOTE across seven classifiers—Logistic Regression, Decision Tree, Extra Trees, Random Forest, CatBoost, LightGBM, and XGBoost—measuring accuracy, precision, recall, F1-score, Macro F1-score, Weighted F1-score, specificity, and ROC-AUC on held-out test sets. In a four-variant ablation study with fixed neighbor count (k equals 5), 1:1 oversampling ratio, and random seed, adding location matching substantially increased same-site neighbor pairing without changing sample volume: same-site shares rose from 15.5 percent to 44.2 percent in Weche_vitcc, from 27.6 percent to 62.0 percent in WeatherAUS, and from 48.8 percent to 76.2 percent in the Indian primary dataset. Enforcing adaptive feature constraints and physical screening reduced physically invalid synthetic observations from between 2.14 percent and 7.74 percent down to zero. Predictive performance, however, did not improve uniformly across every ablation variant, with LightGBM ROC-AUC values remaining closely grouped at 0.880, 0.882, and 0.908 to 0.909.
Results on the severely imbalanced Weather_TN_PY dataset highlighted both the benefits of domain-constrained oversampling for ensemble learners and the limits of overall accuracy as a standalone metric. Random Forest paired with LM-AFC-SMOTE achieved 95.31 percent accuracy, specificity of 0.989, Weighted F1-score of 0.945, F1-score of 0.384, and Macro F1-score of 0.680, improving over standard SMOTE with Random Forest (F1-score 0.286; Macro F1-score 0.630). Even so, its rain-class recall was 0.286 with precision at 0.583, confirming that high accuracy does not by itself reflect balanced rain detection. For threshold-independent class separation on Weather_TN_PY, XGBoost with LM-AFC-SMOTE reached the highest ROC-AUC at 0.915.
On the two less skewed benchmark datasets, LM-AFC-SMOTE remained competitive without leading every metric. On WeatherAUS, LightGBM with LM-AFC-SMOTE achieved 86.30 percent accuracy, an F1-score of 0.661, a Macro F1-score of 0.787, a Weighted F1-score of 0.851, specificity of 0.941, and a ROC-AUC of 0.882. Against previously published WeatherAUS benchmarks, a stacked ensemble named TriBoost-Stack reported slightly higher accuracy at 86.40 percent, whereas LightGBM with LM-AFC-SMOTE delivered a higher F1-score than TriBoost-Stack’s 0.645. On the independent Weche_vitcc campus sensor dataset, LightGBM with LM-AFC-SMOTE reached the highest accuracy at 85.24 percent—listed as 85.23 percent in the abstract—with specificity of 0.949, an F1-score of 0.613, a Macro F1-score of 0.761, and a ROC-AUC of 0.880. However, LightGBM with Geometric SMOTE outperformed LM-AFC-SMOTE on Weche_vitcc in F1-score (0.642), Macro F1-score (0.773), Weighted F1-score (0.845), and ROC-AUC (0.881), illustrating that resampling performance depends on dataset and metric.
Computational benchmarks on an Intel Core i5-10210U machine running Python 3.8 showed dataset-dependent trade-offs among sampling overhead, training time, and memory consumption. Because location matching and feature constraints add preprocessing steps, LM-AFC-SMOTE generated synthetic samples more slowly than standard SMOTE. On WeatherAUS with LightGBM, sampling required 4.77 seconds versus 1.21 seconds for SMOTE, though faster than Geometric SMOTE at 5.88 seconds; yet LM-AFC-SMOTE cut training time to 17.55 seconds—roughly 31 percent below SMOTE’s 25.54 seconds—and reduced memory usage by about 15 percent to 1,702.4 megabytes. On Weche_vitcc with LightGBM, sampling took 4.67 seconds versus 0.86 seconds for SMOTE, while training dropped to 9.66 seconds—about 46 percent below Borderline-SMOTE—and memory fell roughly 30 percent from 1,815.7 to 1,265.2 megabytes. On the much larger Weather_TN_PY dataset with Random Forest, however, sampling rose to 203.28 seconds compared with 54.94 seconds for SMOTE, underscoring notable preprocessing overhead at multi-million-record scale.
Overall, the experiments indicate that embedding geographic matching and physical bounds into synthetic oversampling eliminates physically invalid samples and can strengthen tree-based ensemble classification as class imbalance becomes more severe, while yielding smaller, metric-dependent differences on less skewed datasets. Because training and testing were conducted separately within each dataset, the results reflect within-dataset forward prediction rather than cross-regional generalization. The authors caution that LM-AFC-SMOTE’s components are interpreted primarily through improved neighbor consistency and physical validity rather than as guaranteeing improvement in every predictive metric. Although they suggest the approach may be relevant to other rare-event environmental prediction problems—including flood forecasting, drought monitoring, heatwave identification, and air quality event prediction—those applications were not evaluated in this study. Future research, they note, should test broader geographic regions, additional classifiers and hybrid ensembles, feature selection strategies, and practical deployment requirements for real-time rainfall forecasting.
Subject of Research: Domain-constrained synthetic oversampling for binary rainfall prediction under severe class imbalance
Article Title: LM-AFC-SMOTE: A novel oversampling method for binary rainfall prediction under severe class imbalance
Article References: V, B., & M, S. (2026). LM-AFC-SMOTE: A novel oversampling method for binary rainfall prediction under severe class imbalance. Frontiers in Environmental Science, 14, 1943442. https://doi.org/10.3389/fenvs.2026.1943442
Image Credits: AI Generated
DOI: 10.3389/fenvs.2026.1943442
Keywords: LM-AFC-SMOTE, binary rainfall prediction, class imbalance, synthetic oversampling, adaptive feature constraints, location-matched neighbour selection, IMDAA reanalysis, WeatherAUS, Weche_vitcc, Random Forest, LightGBM, ensemble learning, spatio-temporal inverse distance weighting, Tamil Nadu, Puducherry, ROC-AUC, Macro F1-score
Cite Scienmag News
Violet Maxwell. (December 2, 2026). Location-matched oversampling aids binary rainfall prediction on severely imbalanced datasets. Scienmag. https://scienmag.com/location-matched-oversampling-aids-binary-rainfall-prediction-on-severely-imbalanced-datasets/
Violet Maxwell. "Location-matched oversampling aids binary rainfall prediction on severely imbalanced datasets." Scienmag, 2 December 2026, https://scienmag.com/location-matched-oversampling-aids-binary-rainfall-prediction-on-severely-imbalanced-datasets/. Accessed 2 December 2026.
Violet Maxwell. "Location-matched oversampling aids binary rainfall prediction on severely imbalanced datasets." Scienmag. December 2, 2026. https://scienmag.com/location-matched-oversampling-aids-binary-rainfall-prediction-on-severely-imbalanced-datasets/








