Agricultural researchers at the University of Nebraska-Lincoln Panhandle Research and Extension Center in Scottsbluff have developed a transformer-based hybrid learning framework combining weather reanalysis pretraining with generative diffusion models to forecast soil moisture in data-scarce agricultural fields. In field evaluations conducted across multi-year dry edible bean plots, the Hybrid Learning Model substantially improved forecasting accuracy across root-zone depths compared to standard baseline architectures trained solely on local sensor records. Accurate soil moisture forecasting represents a foundational element of smart irrigation systems, enabling growers to apply water at optimal times and quantities, support crop productivity, prevent nutrient leaching, and conserve water and energy resources. However, deploying and maintaining long-term in-situ sensor networks remains costly, labor-intensive, and prone to data gaps from hardware malfunctions, resulting in sparse records that hinder data-hungry deep learning models. By coupling transfer learning from regional gridded reanalysis with physically guided synthetic data augmentation, the new methodology demonstrates how data scarcity can be mitigated in precision agriculture.
The hydrological cycle links atmospheric and surface dynamics directly to subsurface water movement, yet developing reliable data-driven forecasting tools is frequently constrained by the limited availability of field observations. Near-surface soil moisture responds rapidly to surface meteorological fluctuations such as precipitation, solar radiation, humidity, and temperature variations, but moisture dynamics at deeper soil layers are governed by complex soil hydraulic properties, drainage patterns, and soil profile heterogeneity. Prior modeling investigations have explored tree-based ensembles, long short-term memory networks, support vector regression, and attention-driven transformer architectures to predict soil moisture, alongside transfer learning frameworks utilizing satellite observations and reanalysis data. Nevertheless, models trained strictly on sparse field sampling remain vulnerable to overfitting and exhibit diminished generalizability, particularly when predicting moisture conditions at greater soil depths where delayed relationships with surface atmospheric drivers predominate. In heterogeneous agricultural watersheds, saturated hydraulic conductivity can vary drastically across hillslopes and soil strata, compounding the difficulty of modeling moisture transport through the deeper root zone.
The empirical field trial supporting the study was conducted during the 2021, 2022, and 2023 growing seasons in Scottsbluff, Nebraska, an elevated semi-arid agricultural environment situated at 1,189 meters above sea level with an average annual precipitation of 398 millimeters. The experimental field was dominated by sandy loam soil, characterized by a bulk density of 1.32 grams per cubic centimeter across depths, with sand, silt, and clay contents of 58%, 34%, and 8% in the upper 0 to 60 centimeter profile and 66%, 27%, and 7% between 60 and 100 centimeters. Across the three growing seasons, dry edible beans were cultivated under a GPS-referenced four-span linear-move variable rate sprinkler irrigation system, rotating across spans 4, 1, and 3 in consecutive years with a uniform population of 230,796 plants per hectare. Field management included specific nutrient applications of nitrogen as urea and phosphorus as monoammonium phosphate, with planting occurring in early June and harvesting taking place in late September or October.
To capture a diverse spectrum of soil hydrological conditions, the research team implemented a randomized complete block design containing three blocks and eight irrigation treatments, of which seven were utilized for model training and evaluation. The seven irrigation treatments corresponded to 0%, 25%, 50%, 75%, 100%, 125%, and 150% of crop evapotranspiration, triggered whenever root-zone depletion reached 40% of available root-zone water capacity. Volumetric soil water content was measured at weekly intervals using a CPN 503 ELITE Hydraprobe neutron probe positioned within 21 access tubes distributed across the experimental plots, monitoring moisture at three distinct depths of 30, 60, and 90 centimeters. Yield data were monitored across plot center rows using an instrumented combine harvester calibrated with a weigh wagon prior to harvest. The resulting in-situ dataset comprised 1,478 total samples, which were partitioned into 1,290 samples for training and validation and 188 samples reserved for an independent test set consisting of Treatments 2 and 3 from the 2023 season, designated as Station A and Station B.
Each input sequence provided to the forecasting models comprised a 20-day historical window of observed meteorological features obtained from an adjacent weather station, including maximum and minimum air temperatures, dew point temperature, relative humidity, wind speed, solar radiation, and precipitation. To maintain feature consistency, daily irrigation amounts were merged directly into precipitation as a single water-input metric, while target depths were represented via one-hot depth encoding to enable a single unified network to predict all three depths. The baseline forecasting model utilized a transformer architecture consisting of two encoder layers, four self-attention heads, a latent dimension of 64, a feed-forward dimension of 128, and a prediction head with 64 units. Baseline experiments relying solely on meteorological inputs achieved an overall test R² of 0.60, mean absolute percentage error of 9.72%, and directional accuracy of 0.79. Incorporating antecedent soil moisture from the 30-centimeter depth markedly improved performance, raising R² to 0.76 and reducing root mean square error and mean absolute percentage error to 1.87 and 7.20%, respectively.
To overcome sample scarcity without incurring data leakage, the researchers incorporated Diffusion-TS, a conditional multivariate diffusion framework trained exclusively on the station training subset to synthesize realistic 20-day time-series sequences. Conditioned on observed meteorological sequences and depth encodings through reconstruction-guided sampling, the diffusion network preserved authentic atmospheric and irrigation boundaries while generating synthetic antecedent and target soil moisture values across 100 diffusion steps using a cosine noise schedule. The generative network produced 3,000 synthetic samples evenly distributed across depths, all adhering to physically admissible bounds between zero and total porosity, with over 99.3% falling within observed historical ranges. Quantitative evaluation of the synthetic records demonstrated strong fidelity, yielding a discriminative score of 0.031 against a post-hoc classification discriminator and a predictive score of 0.1236 mean absolute error under train-synthetic-test-real sequence modeling. Furthermore, synthetic instances maintained depth-specific correlation structures and exhibited a mean target spread of 2.7% across noise realizations, verifying that the model generated diverse variations rather than merely copying training instances.
In parallel with generative data augmentation, the investigation utilized transfer learning by pretraining the transformer architecture on the fifth-generation ECMWF atmospheric reanalysis dataset, ERA5. More than 34,000 daily meteorological and land-surface samples spanning May through September of 2021 to 2023 were extracted at 0.25-degree spatial resolution over a geographic window surrounding the Nebraska site. Because ERA5 precipitation reflects rainfed conditions devoid of artificial irrigation, the pretraining phase focused on establishing broad representations of atmospheric forcing and soil moisture response across ERA5 volumetric water content layers 1 through 3, mapped sequentially to the 30, 60, and 90-centimeter field targets. The transfer learning procedure operated in two distinct fine-tuning stages following pretraining: first, the pretrained transformer encoder was frozen while the newly initialized prediction head adapted to target station observations, after which all layers were unfrozen and jointly optimized using a reduced learning rate of 3×10⁻⁵ for the encoder and 3×10⁻⁴ for the head.
To systematically dissect individual modeling components, the authors compared four configurations across ten independent runs: the station-only baseline, the ERA5-Adapted Model (EAM), the Diffusion-Enhanced Model (DEM), and the combined Hybrid Learning Model (HLM). Across the full test set, the baseline reached an R² of 0.764, an RMSE of 1.870, and a MAPE of 7.20%. EAM improved R² to 0.813 with an RMSE of 1.714 and MAPE of 6.61%, while DEM achieved an R² of 0.824, RMSE of 1.611, and MAPE of 5.86%, indicating that local synthetic augmentation outperformed uncalibrated reanalysis pretraining alone. The integrated HLM demonstrated the strongest overall deterministic capability, delivering an R² of 0.857, an RMSE of 1.524, and a MAPE of 5.43%. Depth-specific evaluations revealed that HLM provided its most pronounced gains at deeper layers, elevating R² from 0.478 to 0.659 at 60 centimeters and from 0.213 to 0.556 at 90 centimeters, while reducing 90-centimeter MAPE from 4.42% to 3.07%.
Beyond deterministic accuracy, the researchers developed probabilistic variants for each architecture to characterize predictive uncertainty stemming from sensor calibration, soil heterogeneity, and unresolved atmospheric interactions. Using pinball loss optimization alongside interval-width regularization, the probabilistic models simultaneously predicted the 5th, 50th, and 95th conditional quantiles, with upper and lower bounds parameterized as positive softplus deviations from the median to prevent quantile crossing. Calibration and sharpness were assessed via Prediction Interval Coverage Probability (PICP) against a nominal 90% benchmark and Mean Prediction Interval Width (MPIW). While the probabilistic baseline exhibited over-coverage with a PICP of 0.965 and an excessively wide MPIW of 8.898 percentage points, HLM achieved superior calibration with a PICP of 0.911, falling within one standard error of nominal coverage, while compressing interval width to 6.555 percentage points, representing a reduction in prediction uncertainty of over 26% relative to the baseline and 11% relative to DEM.
Despite these substantial improvements in error magnitude and uncertainty calibration, the authors highlighted critical trade-offs and methodological limitations. Directional accuracy for HLM decreased relative to the baseline across all depths, falling from 0.859 to 0.786 at 30 centimeters and from 0.708 to 0.648 at 90 centimeters. Because deep soil moisture exhibits minimal week-to-week variations that approach sensor precision limits, minor absolute prediction errors caused approximately four additional sign mismatches without compromising overall curve tracking. Furthermore, evaluating HLM under a challenging held-out-year scenario—training on 2021–2022 data and testing on 2023—yielded lower performance due to meteorological distribution shifts that synthetic models trained exclusively on earlier years failed to capture. Additional constraints include the aggregation of irrigation and rainfall into a single water feature, the absence of explicit inter-depth coupling in diffusion sampling, and reliance on a single geographic research station, underscoring the necessity of multi-site validation and remote-sensing integration before broad agricultural deployment.
Subject of Research: Transformer-based hybrid transfer learning and diffusion data augmentation for soil moisture forecasting under data scarcity
Article Title: Enhancing soil moisture prediction under data scarcity using diffusion models and transfer learning
Article References: Hajiabbasi Somehsaraie, M., Xie, S., Gradiz, A., Qiao, X., Wang, J., & Xiao, S. (2026). Enhancing soil moisture prediction under data scarcity using diffusion models and transfer learning. Smart Agricultural Technology, 15, Article 102791. https://doi.org/10.1016/j.atech.2026.102791
Image Credits: AI Generated
DOI: 10.1016/j.atech.2026.102791
Keywords: soil moisture forecasting, transfer learning, diffusion models, Diffusion-TS, ERA5 reanalysis, precision agriculture, transformer models, quantile regression, uncertainty quantification, smart irrigation, root-zone soil water, pinball loss, data scarcity, synthetic data augmentation, CPN 503 ELITE Hydraprobe, dry edible beans, Prediction Interval Coverage Probability, Mean Prediction Interval Width
News Source: Alan Morgan. (November 29, 2026). Hybrid Framework Combines Diffusion and Transfer Learning for Soil Moisture Forecasting. Scienmag.



