论文解读

AI 辅助整理
方法
18,237条多源土壤记录,TPE调参的TabNet集成,对比XGBoost。
发现
集成后准确率0.9053、宏F1 0.9025,优于XGBoost的0.8724。
机会点
尚未外部验证,可跨区域迁移验证并融合遥感时序特征提升泛化。

论文摘要

对18,237条多源土壤记录、7类作物构建TabNet集成框架。TPE优化使对数损失由0.3325降至0.2566,集成后准确率0.9053、宏F1 0.9025,优于XGBoost的0.8724。作者称尚未做外部验证。

全文

Scientific Reports 2026-10-18

ARTICLE | Article in Press
Scientific Reports https://doi.org/10.1038/s41598-026-75366-7
Scientific Reports
This Article in Press is shared early to give you faster access to new research. It is citable and carries a permanent DOI.
The final edited version will replace it automatically.
Architecture diverse TabNet ensemble for crop type
classification using harmonized multisource soil data
Abror Shavkatovich Buriboev · Akhatov Abror · Mamatov Narzullo · Nazarov Fayzullo ·
Yuldoshev Yusuf · Shavkat Buriboyev · Muratali Bazarbaev · Abbos Abduvaytov ·
Gayrat Achilov · Jurabek Kuvandikov · Ravshan Indiaminov · Heung Seok Jeon ·
Cheolwon Lee
Received: 14 August 2026 / Accepted: 6 October 2026
© The Author(s) 2026
Abstract
Accurate analysis of heterogeneous soil records can support data-driven agricultural planning, but integrating
datasets from different laboratories and public repositories introduces challenges related to inconsistent units,
source-dependent distributions, missing values, duplicate observations, and potential information leakage. This
study proposes ADWTabNet, an architecture-diverse TabNet ensemble for multiclass crop-type classification
using harmonized multi-source soil data. The integrated dataset contained 18,237 observations representing
seven crop classes and a broad set of chemical, physical, microbiological, and categorical soil properties.
The proposed framework combines unit standardization, duplicate control, source-distribution harmonization,
separate categorical and numerical imputation, tree-structured Parzen estimator-based hyperparameter opti -
mization, structurally diverse TabNet models, probability-level ensemble fusion, calibration assessment, and
attention-based interpretation. Under the evaluated stratified holdout protocol, XGBoost achieved a test accu -
racy of 0.8724 and a macro F1-score of 0.8670. Baseline TabNet improved these values to 0.8863 and 0.8822,
respectively, while the TPE-optimized TabNet reached an accuracy of 0.8951 and reduced log loss from 0.3325
to 0.2566. The proposed ADWTabNet ensemble obtained the best reported performance, with a test accuracy
of 0.9053, macro F1-score of 0.9025, weighted F1-score of 0.9050, macro ROC–AUC of 0.9930, and normal -
ized multiclass Brier score of 0.0193. Repeated-run evaluation confirmed a stable advantage over the opti -
mized individual TabNet, whereas the difference between validation-weighted and equal architecture-diverse
averaging was not statistically significant. Aggregated TabNet attention ranked humus, phosphorus, electrical
conductivity, nitrogen, and pH among the leading predictors, and this ranking was independently supported
by permutation-importance analysis. These findings demonstrate improved crop-type classification within the
evaluated integrated multi-source dataset. However, external validation using previously unseen laboratories
and geographic regions is required before broader transferability can be established.
Keywords Crop-type classification · TabNet · Ensemble learning · Soil data · Data harmonization ·
Bayesian optimization · Precision agriculture · Interpretability

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
Introduction
Efficient use of agricultural land is increasingly important because expansion of cultivated areas is constrained by
environmental degradation, urbanization, water scarcity, and limited availability of suitable land. One practical
objective of precision agriculture is therefore to identify crops that are compatible with the chemical and physical
properties of available soils. Soil variables such as nitrogen, phosphorus, potassium, pH, electrical conductivity,
organic matter, bulk density, texture, and micronutrient content influence nutrient availability, salinity tolerance,
root development, water retention, and crop productivity.
Interpretation of soil-test results traditionally depends on agronomists and laboratory specialists. Although
expert assessment remains essential, manual analysis becomes difficult when large numbers of heterogeneous soil
records must be processed. Machine-learning methods can support this task by identifying nonlinear relationships
between soil properties and crop classes. Such models may assist preliminary screening and agronomic decision
support, but they should not be interpreted as complete crop-recommendation systems. Reliable recommendation
also requires climatic, irrigation, management, rotational, economic, and yield-related information. Accordingly,
this study formulates the problem as multiclass crop-type classification from soil properties.
Previous crop-classification studies have applied decision trees, support vector machines, k-nearest neigh -
bours, random forests, artificial neural networks, and gradient-boosting algorithms. Although many studies report
strong predictive results, they commonly rely on small, homogeneous, or already-cleaned datasets obtained from
a single region or repository. Models developed under these conditions may learn dataset-specific patterns and
may not generalize to records produced by different laboratories, geographic regions, sampling depths, or mea -
surement protocols.
Machine-learning methods can identify nonlinear relationships between soil properties and crop classes. How-
ever, these models should not be interpreted as complete crop-recommendation systems. Reliable agronomic
recommendation also requires climatic, irrigation, economic, and management information. Measurement het -
erogeneity is also a broader issue in modern soil sensing. Recent work on soil bidirectional reflectance has shown
that measured soil properties and spectral responses can vary with observation geometry, surface condition,
sensing platform, moisture, roughness, and other environmental factors. Lei et al. reviewed these effects across
laboratory, field, airborne, and spaceborne observation systems and emphasized the importance of accounting
for measurement conditions when quantitative soil properties are retrieved from heterogeneous sensing data 1.
Although the present study uses laboratory and tabular soil measurements rather than reflectance spectra, the same
general principle applies: measurements originating from different acquisition systems should not be assumed to
be directly comparable without careful standardization and validation.
A reliable multi-source classification framework therefore requires unit standardization, duplicate control,
missing-data treatment, source-aware harmonization, and training-only estimation of preprocessing parameters.
Evaluation should also consider not only random holdout performance but source-related distribution shift, model
calibration, and interpretability.
Tree-based boosting models such as XGBoost, LightGBM, and CatBoost are strong methods for structured
data because they capture nonlinear effects and feature interactions efficiently. However, they perform split-based
feature selection at the model level. Recent developments in agricultural artificial intelligence have extended
beyond conventional classification toward multimodal reasoning, segmentation, and fine-grained visual analysis.
For example, Yang et al. introduced PestScope, an exclusion-aware large multimodal model for fine-grained agri-
cultural pest segmentation, illustrating the increasing use of task-specific AI architectures for complex precision-
agriculture problems 2. Such advances demonstrate the broader transition toward specialized and multimodal
learning systems in agriculture. However, these developments address different data modalities and should not
be interpreted as direct precedents for soil-based tabular crop classification. TabNet provides a complementary
approach by using sequential attention masks to select observation-specific feature subsets at several decision

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
steps. This mechanism is attractive for soil data because different combinations of nutrient, salinity, organic mat-
ter, and physical properties may be relevant for different observations.
The performance of TabNet depends strongly on architectural and optimization parameters, including decision
width, attention width, number of decision steps, feature-reuse coefficient, sparsity regularization, and masking
function. A single configuration may therefore capture only part of the relevant feature structure. Ensemble learn-
ing can improve generalization when member models are individually accurate but produce partially comple -
mentary errors. Structural variation among TabNet models may provide greater diversity than repeated training
of one identical architecture.
This study proposes ADWTabNet, an architecture-diverse weighted TabNet ensemble for crop-type classi -
fication using harmonized multi-source soil data. The framework integrates leakage-controlled preprocessing,
iterative missing-value imputation, Bayesian hyperparameter optimization, structurally different TabNet learners,
probability-level fusion, calibration assessment, and attention-based interpretation. The dataset contains 18,237
observations from public agricultural repositories and local soil laboratories, representing seven crop classes and
a broad range of chemical, physical, and categorical soil properties.
The main contributions of this study are as follows:

  1. A multi-source soil-data preparation framework is developed for unit standardization, duplicate control, train-
    ing-derived distribution harmonization, categorical imputation, and iterative low-rank numerical imputation.
  2. An architecture-diverse TabNet ensemble is constructed from models with different decision widths, attention
    widths, decision-step counts, feature-reuse coefficients, and masking functions.
  3. The proposed method is compared with conventional machine-learning, boosting, and individual TabNet
    models using predictive, probability-quality, and interpretability measures.
  4. Attention-mask analysis is used to identify the soil properties most influential in crop-type discrimination and
    to examine whether the learned patterns are agronomically plausible.
    The remainder of the paper is organized as follows. Section “Related work” summarizes related work on soil-
    based crop classification, tabular deep learning, and multi-source data integration. Section “Materials and meth-
    ods” presents the datasets, preprocessing pipeline, proposed ADWTabNet method, and experimental setup.
    Section “Results” reports the harmonization, imputation, comparative classification, ensemble, calibration, and
    interpretability results. Section “Discussion” discusses the principal findings, practical implications, and limita-
    tions. Section “Conclusions” concludes the study.
    Related work
    Soil-based crop classification and recommendation
    Machine-learning methods are increasingly used to analyse relationships among soil properties, climatic condi -
    tions, management variables, and crop classes. Typical predictors include nitrogen, phosphorus, potassium, pH,
    electrical conductivity, organic matter, soil texture, micronutrients, temperature, humidity, and rainfall. Recent
    crop-selection systems have evaluated logistic regression, k-nearest neighbours, support vector machines, deci -
    sion trees, random forests, Extra Trees, AdaBoost, gradient boosting, XGBoost, LightGBM, CatBoost, and neural
    networks3–10. These studies generally show that nonlinear ensemble methods provide strong performance when
    crop classes are associated with complex interactions among nutrient availability, acidity, salinity, and climatic
    conditions.
    Explainability has also become an important consideration in agricultural decision support. Shams et al.3 com-
    bined crop recommendation with explainable artificial intelligence to clarify the factors contributing to model
    outputs. Other recent studies have similarly used feature-importance analysis, local explanations, and confidence
    scores to make crop predictions more understandable to farmers and agronomists 4,11,12. These developments are

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
important because high predictive accuracy alone does not establish that a model has learned agronomically
meaningful relationships rather than dataset-specific correlations.
Recent work has also investigated optimized and ensemble classifiers. Bayesian-optimized decision-tree
ensembles have been proposed to improve crop-recommendation performance and reduce sensitivity to manu -
ally selected hyperparameters5. Stacking approaches have combined random forests, XGBoost, CatBoost, Light-
GBM, recurrent networks, and other base learners to improve multiclass discrimination 6,13. LightGBM- and
CatBoost-based systems have received particular attention because they efficiently represent nonlinear interac -
tions while supporting large structured datasets and, in the case of CatBoost, categorical predictors8,14.
Several studies have extended crop classification beyond static benchmark datasets. IoT-enabled systems com-
bine field sensors with machine-learning models to monitor soil nutrients, pH, moisture, electrical conductivity,
temperature, and other environmental variables before producing crop suggestions 9,15,16. Related AIoT systems
have been developed for soil monitoring, hydroponic cultivation, and real-time agricultural decision support17,18.
These systems demonstrate the practical value of integrating predictive models with field measurements, but they
also introduce additional uncertainty associated with sensor calibration, missing observations, temporal drift, and
local deployment conditions.
Machine learning has also been applied to closely related soil-management tasks. Recent studies have predicted
soil chemical properties from mid-infrared spectroscopy for fertilizer recommendation, estimated site-specific
fertilizer requirements, mapped soil organic carbon, and combined soil, weather, satellite, and crop-model vari -
ables for yield prediction19–22. These studies reinforce the importance of soil information in agricultural decision
support while also showing that crop suitability cannot be inferred from nutrient measurements alone. Reliable
agronomic recommendations normally require climate, water availability, planting season, management prac -
tices, expected yield, and economic constraints in addition to soil characteristics. Despite encouraging results,
much of the crop-recommendation literature relies on the widely used 2,200-observation dataset containing 22
crop classes and seven predictors: N, P, K, temperature, humidity, pH, and rainfall 4,8,11,12. Although this dataset
is useful for algorithm comparison, its limited source diversity does not represent the variability introduced
by different laboratories, analytical methods, geographical regions, sampling depths, soil-property definitions,
and missingness patterns. Recent surveys of crop-selection methods have therefore emphasized the need for
broader datasets, more realistic validation, transparent preprocessing, and evaluation under environmental and
geographic distribution shifts11,23.
Tabular deep learning and TabNet
Structured agricultural datasets contain heterogeneous numerical and categorical variables, irregular distribu -
tions, missing values, nonlinear interactions, and variables measured at different scales. Gradient-boosted deci -
sion trees remain strong baselines for such data, and comparative studies have shown that deep neural networks
do not universally outperform XGBoost, LightGBM, or CatBoost on medium-sized tabular datasets24–26. Conse-
quently, new tabular neural architectures should be evaluated against both conventional machine-learning meth-
ods and carefully tuned boosting models.
NODE introduced differentiable ensembles of oblivious decision trees that can be optimized end to end while
preserving a tree-inspired inductive structure24. TabTransformer subsequently applied self-attention to contextu-
alized categorical-feature embeddings and demonstrated improved robustness to missing and noisy inputs27. FT-
Transformer extended the transformer approach by representing numerical and categorical variables as feature
tokens and modelling their interactions through self-attention25. SAINT further introduced attention across both
features and observations, together with contrastive pretraining for settings with limited labels28.
More recent methods have investigated transferable and pretrained representations. TransTab was designed to
transfer information across tables with non-identical feature spaces29. TabPFN used prior-data-fitted transformers
to perform rapid in-context classification on small tabular datasets 30, while later extensions sought to improve
scalability and categorical-feature handling 31. Large-scale pretraining and foundation-model approaches have

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
also been explored for transferable tabular representation learning32. These developments indicate a broader shift
from dataset-specific training toward reusable representations, although their computational assumptions and
supported dataset sizes differ substantially. TabNet is especially relevant to soil-data analysis because it performs
sequential, observation-specific feature selection 33. At each decision step, an attentive transformer generates a
sparse mask that determines which variables should be processed. The masked features are passed through shared
and step-specific feature transformers, and decision outputs from multiple steps are aggregated for classification.
This design provides both nonlinear representation learning and instance-level interpretability, which is valuable
when different combinations of pH, humus, salinity, macronutrients, micronutrients, and physical properties may
be relevant to different crops or soil samples.
However, TabNet performance depends on decision width, attention width, decision-step count, feature-reuse
coefficient, sparsity regularization, mask type, learning rate, batch size, and other optimization settings. A single
configuration may therefore represent only one balance among model capacity, sparsity, and sequential feature
reuse. Comparative work on tabular deep learning has similarly shown that architecture selection and tuning
protocols can substantially influence conclusions about model superiority 25,26,34. This sensitivity motivates sys -
tematic hyperparameter optimization and the investigation of ensembles containing structurally different TabNet
members.
Ensemble learning is particularly relevant when individual models have similar overall performance but make
partially different errors. Probability-level averaging can reduce prediction variance and improve probability
quality without requiring changes to the underlying TabNet architecture. Nevertheless, ensemble gains should
be separated from gains produced by validation-derived weighting. When optimized weights are nearly uniform,
improvements are more plausibly attributable to combining architecture-diverse predictions than to the weighting
rule itself.
Multi-source soil-data integration
Integrating soil observations from multiple repositories can increase sample size, crop coverage, feature diver -
sity, and environmental representation. Multi-source soil modelling has previously combined laboratory mea -
surements, proximal sensing, remote sensing, environmental covariates, and spatial information to improve
soil-property prediction35. Recent soil-mapping studies have likewise demonstrated the value of combining crop-
ping-system information, weather variables, satellite measurements, spectroscopy, and management data19–22.
Direct concatenation is nevertheless problematic because data sources may differ in measurement units, ana -
lytical procedures, sampling depths, feature availability, crop composition, numerical precision, and missingness
mechanisms. Nutrient concentrations may be expressed in kg ha−1, mg kg−1, or ppm; electrical conductivity may
be recorded under differently labelled but numerically equivalent units; and organic matter may be represented
directly or estimated from organic carbon. These differences require explicit conversion assumptions and careful
documentation.
Distributional differences may remain even after unit standardization. Such differences can reflect genuine
environmental variation, but they can also arise from laboratory procedures, sensor characteristics, sample-selec-
tion policies, or data-entry conventions. Quantile-based harmonization can align marginal distributions by map-
ping observations from one source to a reference distribution while preserving their within-source rank. However,
overly aggressive transformation may suppress meaningful geographic or management-related variability. Har -
monization should therefore be estimated using training data only and assessed using both distributional diag -
nostics and downstream predictive performance. Missingness is another central challenge. In multi-source soil
data, missing values are frequently structured because different laboratories measure different sets of properties.
Numerical imputation methods include median or nearest-neighbour imputation, multivariate iterative proce -
dures, random-forest methods, matrix completion, and low-rank decomposition. Categorical variables can be
reconstructed through mode replacement, tree-based classifiers, or explicit unknown-category encoding. The
imputation model must be fitted without access to validation or test values to avoid optimistic evaluation.

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
Duplicate and near-duplicate observations can also produce substantial leakage. When repeated or highly simi-
lar soil records occur in both training and test partitions, a classifier may effectively memorize sample-specific
patterns. Exact duplicate removal, approximate similarity detection, and group-aware partitioning are therefore
necessary for reliable evaluation. These precautions are especially important when datasets originate from public
repositories that may contain copied, reformatted, or partially overlapping records. A further difficulty is source–
class confounding. If one crop occurs predominantly in one repository, source-specific measurement charac -
teristics may become proxies for the crop label. Random stratified splitting alone does not reveal this problem
because records from the same source can appear in both training and test sets. Source-aware diagnostics, leave-
source-out evaluation, external laboratory testing, and source-prediction analysis can provide stronger evidence
regarding transferability.
Research gap
The literature demonstrates that machine learning can effectively model soil–crop relationships and that boosting
methods remain powerful baselines for structured agricultural data3–14. Recent work has also improved interpret-
ability, hyperparameter optimization, IoT integration, and ensemble learning. Nevertheless, many studies con -
tinue to use homogeneous benchmark datasets, limited predictor sets, or random train–test partitions that do not
examine source-related distribution shift.
At the same time, tabular deep-learning research has introduced attention-based, tree-inspired, transferable,
and pretrained architectures24–34. TabNet is attractive for soil analysis because its sequential masks provide obser-
vation-specific feature selection, but its sensitivity to architectural settings creates uncertainty regarding the use
of a single configuration. Architecture-diverse TabNet ensembles have not been extensively examined for het -
erogeneous multi-source soil classification, particularly in combination with leakage-controlled preprocessing,
probability calibration, and attention-based agronomic interpretation.
The present study addresses this gap through a unified framework that combines unit standardization, duplicate
control, training-derived distribution harmonization, separate categorical and numerical imputation, TPE-based
hyperparameter optimization, architecture-diverse TabNet ensembling, probability-quality assessment, and atten-
tion-mask interpretation. Unlike a complete crop-recommendation system, the proposed framework is formu -
lated as multiclass crop-type classification from soil properties. Its purpose is to investigate whether structurally
diverse TabNet models can improve classification and probability estimates within a heterogeneous integrated
dataset while maintaining interpretable reliance on agronomically meaningful variables.
Materials and methods
The proposed framework consists of four stages: multi-source dataset construction, leakage-controlled prepro -
cessing, TabNet optimization, and architecture-diverse ensemble learning. Soil records from three public reposi-
tories and one local laboratory source were first standardized with respect to crop labels, variable names, and
measurement units. Missing target labels and duplicate observations were removed, after which the cleaned data
were divided into training, validation, and test subsets. All data-dependent preprocessing operations were esti -
mated from the training subset and then applied unchanged to the validation and test subsets.
The processed data were used to train conventional machine-learning models, boosting methods, individual
TabNet models, and the proposed architecture-diverse weighted TabNet ensemble, denoted ADWTabNet. Model
performance was evaluated using predictive accuracy, class-balanced metrics, probability quality, and attention-
based feature interpretation (see Fig. 1).

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
Dataset and target definition
The study used a multi-source soil dataset constructed by integrating three public agricultural datasets and one
local soil-laboratory dataset. The four sources are denoted as 𝑂𝑂1, 𝑂𝑂2, 𝑂𝑂3, and 𝑂𝑂4.
Source 𝑂𝑂1was derived from a public crop-growth recommendation dataset containing 2,200 observations and
22 crop classes. Only cotton, corn, and bean records were retained. The available soil variables were nitrogen,
phosphorus, potassium, and pH.
Source 𝑂𝑂2contained potato observations and included nitrogen, phosphorus, potassium, pH, electrical conduc-
tivity, sulfur, copper, iron, manganese, zinc, and boron. Several micronutrients were originally reported in ppm
and were standardized to mg/kg.
Source 𝑂𝑂3was based on field samples collected in the Nashik district of India. Wheat, potato, corn, and bean
were retained. The available variables included pH, electrical conductivity, calcium carbonate, organic carbon,
nitrogen, phosphorus, and potassium. Organic carbon was converted to approximate humus content during
preprocessing.
Source 𝑂𝑂4consisted of local soil-laboratory records and contained all seven crop classes included in the study.
Its attributes comprised soil layer, mechanical composition, carbonate fraction, soil density, pH, electrical con -
ductivity, nitrogen, phosphorus, potassium, humus, magnesium, sulfur, zinc, manganese, boron, iron, copper, and
microorganism count. Because 𝑂𝑂4contained the broadest feature profile and represented the intended application
environment, it was selected as the reference source for unit standardization and distribution harmonization.
Source-crop composition and potential confounding
The four contributing datasets differed substantially in crop coverage. Source O 1_contained cotton, corn, and
bean records; O2 contained only potato observations; O3 contained wheat, potato, corn, and bean records; and O4
contained all seven crop classes represented in the final integrated dataset. Consequently, source identity and crop
class were not statistically independent by construction, creating a potential source–class confounding pathway.
To characterize this issue explicitly, crop availability across the four sources was summarized using a source-
by-crop support matrix (Table 1). The table distinguishes crop classes shared by multiple sources from classes
Fig. 1 Overall workflow of the proposed multi-source soil-data processing and ADWTabNet classification framework. All
data-dependent transformations are fitted using training data only and subsequently applied to the validation and test sets.

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
represented exclusively in the local laboratory source. This distinction is important because source-specific mea-
surement protocols, feature availability, laboratory procedures, and geographic conditions may otherwise act as
indirect proxies for crop labels. Because the final cleaned dataset contained 18,237 observations and the crop
classes were only moderately imbalanced, the principal concern was not class frequency alone but the unequal
distribution of classes across sources. Source-aware validation was therefore designed according to class support
rather than by applying a mechanically identical leave-one-source-out protocol to all four datasets.
The target variable represented the crop class associated with each soil observation in its original source.
Accordingly, the task was formulated as multiclass crop-type classification rather than direct crop recommenda-
tion. The available labels indicate historical soil–crop associations but do not establish that the corresponding
crop is agronomically optimal. A complete recommendation system would additionally require climatic, irriga -
tion, management, crop-rotation, economic, and expected-yield information. Let the integrated dataset be defined
as
𝒟𝒟𝒟 {(𝑥𝑥𝑖𝑖,𝑦𝑦 𝑖𝑖,𝑠𝑠 𝑖𝑖)}
𝑁𝑁
𝑖𝑖𝑖𝑖,
where 𝑥𝑥𝑖𝑖 ∈ ℝ𝑑𝑑denotes the predictor vector of the 𝑖𝑖-th soil observation, 𝑦𝑦𝑖𝑖 ∈ {1, … , 𝐾𝐾 }is its crop label, and
𝑠𝑠𝑖𝑖 ∈ {𝑂𝑂1,𝑂𝑂 2,𝑂𝑂 3,𝑂𝑂 4}identifies its source. In this study, 𝐾𝐾𝐾𝐾 . The classification model estimates the posterior prob-
ability vector
𝑝𝑝𝑖𝑖 =𝑓𝑓 (𝑥𝑥𝑖𝑖) = [𝑝𝑝𝑖𝑖𝑖,𝑝𝑝 𝑖𝑖𝑖,… ,𝑝𝑝 𝑖𝑖𝑖𝑖] ,
subject to

𝑝𝑝𝑖𝑖𝑖𝑖 ≥ 0,
𝐾𝐾
∑
𝑖𝑖𝑘𝑘
𝑝𝑝𝑖𝑖𝑖𝑖 = 1.
The predicted crop class is

̂𝑦𝑦𝑖𝑖 = arg max𝑘𝑘∈ {1,… ,𝐾𝐾}𝑝𝑝𝑖𝑖𝑘𝑘.
After removing observations with missing target labels and eliminating exact or approximate duplicates, the final
dataset contained 18,237 observations representing seven crop classes. The largest class contained 2,890 observa-
tions, whereas the smallest contained 2,195 observations. The resulting imbalance ratio was
IR = 28902195 = 1.317.
Because the class distribution was only moderately imbalanced, synthetic oversampling was not applied.
Table 1 Crop-class support across the four contributing data sourcesrop-class composition across the four data sources after
cleaning.
Crop class O1 O2 O3 O4 Number of contributing sources Source-support pattern
Cotton ✓ — — ✓ 2 O1 + O4
Corn ✓ — ✓ ✓ 3 O1 + O3 + O4
Bean ✓ — ✓ ✓ 3 O1 + O3 + O4
Wheat — — ✓ ✓ 2 O3 + O4
Potato — ✓ ✓ ✓ 3 O2 + O3 + O4
Tomato — — — ✓ 1 O4 only
Carrot — — — ✓ 1 O4 only
Total classes represented 3 1 4 7 — —
Crop class O1 O2 O3 O4 Number of contributing sources Source-support pattern

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
The Sample field was retained only for auditing, duplicate detection, and group-aware partitioning. It was
excluded from the predictor set because it represented an identifier rather than an agronomically meaningful soil
attribute and could encode source, batch, location, or collection order.
Data cleaning, unit conversion, and harmonization
Data cleaning and duplicate control
Each source was initially inspected for inconsistent variable names, crop labels, data types, measurement units,
impossible values, missing targets, and duplicate records. Equivalent soil properties were renamed using a unified
nomenclature before source integration. Observations with missing crop labels were removed because supervised
classification requires a valid target. The original integration procedure identified 109 records with missing target
values. A further 183 exact or approximate duplicate observations were removed. Exact duplicates were detected
after standardizing feature names, units, and data types. Approximate duplicates were identified by discretizing
numerical variables into quantile-based bins and representing each observation as a set of feature–bin tokens. For
observations 𝑖𝑖and 𝑗𝑗, similarity was calculated using the Jaccard coefficient:

𝐽𝐽 (𝑖𝑖𝑖 𝑖𝑖) = ∣ 𝐴𝐴𝑖𝑖 ∩ 𝐴𝐴𝑗𝑗 ∣∣ 𝐴𝐴𝑖𝑖 ∪ 𝐴𝐴𝑗𝑗 ∣ 𝑖
where 𝐴𝐴𝑖𝑖 and 𝐴𝐴𝑗𝑗 denote the corresponding token sets.
MinHash signatures and locality-sensitive hashing were used to identify candidate near-duplicate pairs effi -
ciently. Candidate pairs above a predefined similarity threshold were reviewed, and only one representative was
retained when records were judged to be duplicates. All records belonging to the same duplicate group were
assigned to the same partition to prevent leakage between training and test data.
Unit standardization
The same soil property was reported using different units across the four sources. All measurements were there-
fore converted to the reference unit system used by 𝑂𝑂4.
For nitrogen, phosphorus, and potassium values reported in kg/ha, the dry soil mass within one hectare and
sampling depth ℎwas estimated as
𝑀𝑀soil = 104ℎ𝜌𝜌 𝑏𝑏,
where 104is the area of one hectare in m2, ℎis the sampling depth in metres, and 𝜌𝜌 𝑏𝑏is bulk density in kg/m3. A
nutrient quantity 𝑞𝑞kg/hawas converted to mg/kgas

𝑞𝑞 mg
kg

106𝑞𝑞 kg
ha
𝑀𝑀soil
.
When sample-specific depth or bulk-density values were unavailable, source-specific reference assumptions were
applied consistently. Electrical conductivity reported in dS/mwas treated as numerically equivalent to mS/cm:

1dS
m = 1mScm .
For mass-based soil measurements, 1ppm =1 mg/kg, and therefore micronutrients reported in ppm were relabelled
as mg/kgwithout numerical transformation. Organic carbon was converted to approximate humus content using
the Van Bemmelen factor:

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
Humus = 1.724 × OC.
This conversion assumes that organic carbon constitutes approximately 58% of soil organic matter and was there-
fore treated as an approximation rather than an exact equivalence.
Data partitioning and leakage control
The cleaned dataset was divided into training, validation, and test subsets using stratified group-aware splitting.
Stratification preserved crop-class proportions, while group constraints ensured that exact and near-duplicate
records were not distributed across different subsets. The partition ratio was 70% ∶ 15% ∶ 15%. The training subset
was used to estimate all preprocessing parameters and model weights. The validation subset was used for hyper-
parameter optimization, early stopping, architecture selection, and ensemble-weight calculation. The test subset
remained isolated until final evaluation. The following operations were estimated using only the training subset:
● source-specific harmonization mappings;
● categorical vocabularies;
● categorical and numerical imputation models;
● numerical scaling parameters;
● model hyperparameters;
● early-stopping decisions;
● ensemble weights.
The fitted transformations were subsequently applied unchanged to the validation and test subsets.
Training-derived distribution harmonization
Even after unit conversion, source-dependent differences may remain because of laboratory procedures, geo -
graphic variation, sample-selection policies, measurement precision, and historical management conditions.
For each shared numerical variable, source distributions were compared using the two-sample Kolmogorov–
Smirnov statistic, Cohen’s 𝑑𝑑, and Wasserstein distance. Source 𝑂𝑂4was used as the reference because it provided
the widest feature coverage and represented the intended application environment.
The selection of O4 as the reference source was based on three complementary considerations. First, O 4 pro-
vided the broadest feature coverage among the four contributing datasets, including chemical, physical, micro -
biological, and categorical soil attributes. Second, it contained all seven crop classes considered in the final
classification task, whereas the public sources contained only subsets of these classes. Third, O 4 represented the
intended local laboratory application environment of the proposed framework. It therefore provided the most
complete common reference space for distribution alignment.
Nevertheless, selecting a single reference distribution may influence the resulting feature representation. To
determine whether the observed classification improvement depended specifically on the choice of O4, additional
sensitivity experiments were conducted using alternative harmonization strategies. These included direct pooling
after unit standardization without distributional harmonization, source-wise standardization, pooled-reference
quantile harmonization, and the proposed O 4-reference quantile harmonization. All transformation parameters
were estimated from the corresponding training subset only and subsequently applied unchanged to validation
and test observations. Four preprocessing variants were compared:
No harmonization: records were pooled after variable-name and unit standardization, without explicit distribu-
tion alignment.
Source-wise standardization: each shared numerical feature was standardized within its source using training-
derived mean and standard deviation.
Pooled-reference quantile harmonization: source-specific empirical quantiles were mapped to a pooled train -
ing-data reference distribution constructed from all available sources.

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
O4-reference quantile harmonization: public-source observations were mapped to the corresponding training-
derived O4 marginal distributions, as used in the proposed pipeline.
The strategies were evaluated using downstream ADWTabNet accuracy, macro F1-score, and auxiliary source-
classification accuracy. The latter was included because a harmonization procedure that improves crop classifica-
tion while leaving source identity perfectly recoverable may still preserve substantial source-specific structure.
For feature 𝑗𝑗, an observation 𝑥𝑥𝑖𝑖𝑖𝑖 from source 𝑠𝑠 was harmonized as

∼
𝑥𝑥𝑖𝑖𝑖𝑖 =𝐹𝐹 −14,𝑖𝑖 [𝐹𝐹𝑠𝑠,𝑖𝑖 (𝑥𝑥𝑖𝑖𝑖𝑖)] ,
where 𝐹𝐹𝑠𝑠𝑠𝑠𝑠 denotes the empirical cumulative distribution function of feature 𝑗𝑗 in source 𝑠𝑠, and 𝐹𝐹−14,𝑗𝑗 denotes the
inverse empirical distribution of the same feature in the reference source.
Both 𝐹𝐹𝑠𝑠𝑠𝑠𝑠and 𝐹𝐹4,𝑗𝑗were estimated from the training subset only. V alidation and test observations were trans -
formed using the fixed training-derived mappings without re-estimation.
Harmonization effectiveness was evaluated according to:

  1. reduction in KS statistics;
  2. reduction in absolute Cohen’s 𝑑𝑑;
  3. reduction in Wasserstein distance;
  4. downstream classification performance;
  5. source-classification accuracy before and after harmonization.
    As an additional diagnostic, source predictability was examined by treating the four source identifiers O 1–O4
    as the target variable. The purpose of this analysis was to determine whether the feature representation retained
    identifiable source-specific structure after harmonization. Because source and crop composition were partially
    confounded, source-prediction performance was interpreted as a diagnostic of residual source information rather
    than as a formal measure of harmonization success.
    Missing-value treatment
    The integrated dataset contained structured missingness because the contributing laboratories and public reposi-
    tories did not measure identical sets of soil properties. The mean missing-value proportion across predictive
    variables was approximately 2.87%, and the highest rate occurred for microorganism count.
    Missingness patterns were examined across variables, sources, and crop classes. For each predictor 𝑥𝑥𝑗𝑗, a binary
    missingness indicator was defined as

𝑟𝑟𝑖𝑖𝑖𝑖 = { 1, 𝑥𝑥 𝑖𝑖𝑖𝑖 is missing,0, 𝑥𝑥 𝑖𝑖𝑖𝑖 is observed.
Associations between missingness indicators and numerical variables were examined using point-biserial cor -
relation. Associations with categorical variables were assessed using contingency tables and Cramér’s 𝑉𝑉. These
analyses were treated as exploratory diagnostics rather than definitive evidence of MCAR, MAR, or MNAR
mechanisms. Numerical and categorical predictors were imputed separately.
Categorical imputation
After removing the Sample identifier, the categorical predictors were soil layer and mechanical composition. Soil
layer was treated as ordered, whereas mechanical composition was treated as nominal.
Missing categorical values were reconstructed using an iterative Extra Trees classifier. For an incomplete cat-
egorical feature 𝑐𝑐𝑗𝑗, its observed values were used as targets, while the remaining variables formed the predictor
matrix:

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
̂𝑐𝑐𝑖𝑖𝑖𝑖 =𝑔𝑔 𝑖𝑖 (𝑥𝑥𝑖𝑖𝑖𝑖𝑖𝑖) ,
where 𝑔𝑔𝑗𝑗denotes the Extra Trees model fitted for feature 𝑗𝑗, and 𝑥𝑥𝑖𝑖𝑖𝑖𝑖𝑖contains all predictors except 𝑐𝑐𝑗𝑗.
The procedure was initialized using the most frequent training category. Incomplete categorical variables were
updated iteratively until either no imputed value changed or the maximum number of iterations was reached.
All Extra Trees models were fitted using the training subset and applied unchanged to the validation and test
subsets. Unknown categories not observed during training were assigned a dedicated unknown-category index.
Categorical imputation quality was evaluated by artificially masking 5% of observed training entries and calcu -
lating weighted F1-score between the reconstructed and original values.
Numerical imputation
Numerical missing values were reconstructed using iterative low-rank singular value decomposition. Let
𝑋𝑋 ∈ ℝ𝑁𝑁𝑁 𝑁𝑁𝑛𝑛
denote the numerical training matrix, where 𝑑𝑑𝑛𝑛 is the number of numerical predictors, and let Ω denote the set of
observed entries. The objective was to obtain a low-rank matrix 𝑍𝑍minimizing the observed-entry reconstruction
error:

min
rank(𝑍𝑍)≤ 𝑟𝑟
∥ 𝑃𝑃Ω (𝑋𝑋𝑋𝑋𝑋 ) ∥
2
𝐹𝐹,
where 𝑟𝑟 is the retained rank, 𝑃𝑃Ω preserves observed entries, and ∥ ⋅∥ 𝐹𝐹 denotes the Frobenius norm.
Initially, missing entries were replaced with training-column means. At iteration 𝑡𝑡, truncated SVD was applied:
𝑋𝑋(𝑡𝑡) ≈ 𝑈𝑈𝑟𝑟Σ 𝑟𝑟𝑉𝑉⊤𝑟𝑟 .
The low-rank reconstruction was
ˆ𝑋𝑋(𝑡𝑡) =𝑈𝑈 𝑟𝑟Σ 𝑟𝑟𝑉𝑉⊤𝑟𝑟 .
Observed entries remained unchanged, while missing entries were updated according to

𝑋𝑋(𝑡𝑡𝑡𝑡)𝑖𝑖𝑖𝑖 = { 𝑋𝑋𝑖𝑖𝑖𝑖, (𝑖𝑖, 𝑖𝑖) ∈ Ω,ˆ𝑋𝑋(𝑡𝑡)𝑖𝑖𝑖𝑖 , (𝑖𝑖, 𝑖𝑖) ∉ Ω.
The iteration stopped when the relative change in missing entries satisfied

∥ 𝑃𝑃Ω 𝑐𝑐 (𝑋𝑋(𝑡𝑡𝑡𝑡) −𝑋𝑋 (𝑡𝑡)) ∥𝐹𝐹
∥ 𝑃𝑃Ω 𝑐𝑐 (𝑋𝑋(𝑡𝑡)) ∥𝐹𝐹 +𝜖𝜖 <𝜏𝜏𝜏
or when the maximum number of iterations was reached.
The retained rank 𝑟𝑟, tolerance 𝜏𝜏 , and maximum iteration count were selected using artificial masking within
the training subset. Numerical reconstruction was evaluated using MAE, RMSE, and 𝑅𝑅2.
After imputation, numerical variables were transformed using training-set min–max scaling:

𝑥𝑥′𝑖𝑖𝑖𝑖 = 𝑥𝑥𝑖𝑖𝑖𝑖 −𝑥𝑥 𝑖𝑖𝑗min𝑥𝑥𝑖𝑖𝑗max −𝑥𝑥 𝑖𝑖𝑗min .
The same parameters were applied to validation and test observations.

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
Proposed ADWTabNet
The proposed architecture-diverse weighted TabNet ensemble, denoted ADWTabNet, combines five structurally
distinct TabNet models and integrates their predicted class probabilities (see Fig. 2).
The model input consisted of scaled numerical variables and embedded categorical variables. Let the numeri-
cal component of observation 𝑖𝑖 be.
and let the categorical variables be
𝑥𝑥(cat)𝑖𝑖 = [𝑐𝑐𝑖𝑖𝑖,… ,𝑐𝑐 𝑖𝑖𝑖𝑖𝑐𝑐 ] .
For categorical feature 𝑗𝑗, an embedding matrix was defined as.
𝐸𝐸𝑗𝑗 ∈ ℝ𝑚𝑚𝑗𝑗 ×𝑒𝑒 𝑗𝑗 ,where 𝑚𝑚𝑗𝑗is the number of categories, including the unknown-category token, and 𝑒𝑒𝑗𝑗is the embed-
ding dimension. The final input vector was
𝑧𝑧𝑖𝑖 = [𝑥𝑥(num)𝑖𝑖 ;𝐸𝐸 1; (𝑐𝑐𝑖𝑖1) ;… 𝐸𝐸 𝑑𝑑𝑐𝑐 (𝑐𝑐𝑖𝑖𝑑𝑑𝑐𝑐 )] .
TabNet backbone
TabNet performs sequential, observation-specific feature selection. At decision step 𝑡𝑡, an attentive transformer
generates a sparse feature mask:
𝑀𝑀(𝑡𝑡)𝑖𝑖 =𝜙𝜙 [𝑃𝑃(𝑡𝑡𝑡𝑡)𝑖𝑖 ⊙ 𝑎𝑎(𝑡𝑡)𝑖𝑖 ] ,
Fig. 2 Architecture of proposed ADWTabNet.

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
where 𝑎𝑎(𝑡𝑡)𝑖𝑖 denotes raw attention scores, 𝑃𝑃(𝑡𝑡𝑡𝑡)𝑖𝑖 is the prior scale vector, ⊙ denotes element-wise multiplication, and
𝜙𝜙 is sparsemax or entmax. The selected feature representation is

∼
𝑧𝑧
(𝑡𝑡)
𝑖𝑖 =𝑀𝑀 (𝑡𝑡)𝑖𝑖 ⊙ 𝑧𝑧𝑖𝑖.
The prior scale vector is updated as
𝑃𝑃(𝑡𝑡)𝑖𝑖 =𝑃𝑃 (𝑡𝑡𝑡𝑡)𝑖𝑖 ⊙ (𝛾𝛾 𝛾𝛾𝛾 (𝑡𝑡)𝑖𝑖 ) ,
where 𝛾𝛾 controls feature reuse across decision steps.
The masked input is processed by shared and step-specific feature-transformer blocks. The decision outputs
are aggregated as

ℎ𝑖𝑖 =
𝑇𝑇
∑
𝑡𝑡𝑡𝑡
ReLU (𝑑𝑑(𝑡𝑡)𝑖𝑖 ) .
The class-probability vector generated by model 𝑚𝑚is
𝑝𝑝(𝑚𝑚)𝑖𝑖 = softmax (𝑊𝑊(𝑚𝑚)𝑜𝑜 ℎ(𝑚𝑚)𝑖𝑖 +𝑏𝑏 (𝑚𝑚)𝑜𝑜 ) .
Each TabNet member was trained using multiclass cross-entropy and sparse-mask regularization:
ℒ(𝑚𝑚) =ℒ (𝑚𝑚)CE +𝜆𝜆 (𝑚𝑚)sparseℒ(𝑚𝑚)mask.
Bayesian optimization
A tree-structured Parzen estimator was used to optimize TabNet hyperparameters. The search space included:
● decision width 𝑛𝑛𝑑𝑑;
● attention width 𝑛𝑛𝑎𝑎;
● number of decision steps 𝑇𝑇;
● feature-reuse coefficient 𝛾𝛾 ;
● sparsity coefficient;
● learning rate;
● batch size;
● virtual batch size;
● masking function;
● number of shared GLU blocks;
● number of independent GLU blocks.
The optimization objective was validation macro F1-score:

𝜃𝜃
∗
= argmax
𝜃𝜃 ∈ Θ
𝐹𝐹𝐹macro (𝜃𝜃 ) .
Median-based pruning terminated poorly performing trials. The original optimization used 25 trials, of which 8
were pruned.
Architecture-diverse member selection
The five ensemble members were selected from the set of high-performing configurations produced during TPE-
based hyperparameter optimization. The selection process prioritized two criteria: strong validation performance

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
and structural variation in the principal TabNet architecture parameters. Specifically, the retained models differed
in decision width 𝑛𝑛𝑑𝑑, attention width 𝑛𝑛𝑎𝑎, number of decision steps 𝑛𝑛steps, and feature-reuse coefficient 𝛾𝛾 .
A formal numerical architectural-distance objective was not used during member selection. Instead, the five
members were selected from high-performing TPE trials by considering validation performance together with
deliberate variation in decision width, attention width, decision-step count, and feature-reuse coefficient. The
selected configurations therefore represent a set of structurally distinct, high-performing TabNet models rather
than the output of a separately optimized diversity criterion.
The selected configurations were as shown in Table 2:
These configurations provide structural diversity in model capacity, attention representation, decision depth,
and feature reuse. Model 3 had the largest decision width, Model 4 used the smallest decision width, Model 5
combined a reduced attention width with the greatest number of decision steps, and Models 1 and 2 shared the
same decision-step count but differed in decision width and 𝛾𝛾 . This variation was intended to encourage partially
complementary feature-selection patterns and prediction errors.Architectural heterogeneity alone does not neces-
sarily imply predictive diversity. Two TabNet models with different structural hyperparameters may nevertheless
produce highly similar class predictions or probability distributions. Therefore, prediction-level diversity among
the selected ensemble members was evaluated directly rather than inferred solely from differences in decision
width, attention width, decision-step count, and feature-reuse coefficient.
Pairwise diversity between the five ensemble members was quantified using prediction disagreement, Cohen’s
k, pairwise error correlation, and the Q-statistic. Prediction disagreement measured the proportion of observa -
tions for which two models produced different predicted classes. Cohen’s k quantified agreement beyond chance,
whereas pairwise error correlation assessed whether two models tended to misclassify the same observations. The
Q-statistic quantified similarity in the correctness patterns of each model pair. Then equations:

𝐷𝐷𝑖𝑖𝑖𝑖 = 1𝑁𝑁
𝑁𝑁
∑
𝑛𝑛𝑛𝑛
𝕀𝕀 ( ̂𝑦𝑦(𝑖𝑖)𝑛𝑛 ≠ ̂𝑦𝑦(𝑖𝑖)𝑛𝑛 ) ,

𝜅𝜅 𝑖𝑖𝑖𝑖 = 𝑝𝑝𝑜𝑜 −𝑝𝑝 𝑒𝑒1−𝑝𝑝 𝑒𝑒 ,
And

𝑄𝑄𝑖𝑖𝑖𝑖 = 𝑁𝑁11𝑁𝑁00 −𝑁𝑁 10𝑁𝑁01𝑁𝑁11𝑁𝑁00 +𝑁𝑁 10𝑁𝑁01
where N11 denotes the number of observations correctly classified by both models, N 00 the number incorrectly
classified by both, and N10 and N01 the numbers correctly classified by only one of the two models, respectively.
Lower disagreement and higher k or Q-statistic indicate greater similarity, whereas lower error correlation and
higher disagreement indicate stronger predictive complementarity. The candidate-selection process can therefore
be summarized as follows:
TPE optimization generated multiple TabNet configurations.

  1. Configurations with poor validation performance were excluded.
    Ensemble member nd na Decision steps 𝜸𝜸 Normalized ensemble weight
    Model 1 48 48 4 1.274 0.200
    Model 2 40 48 4 1.374 0.199
    Model 3 56 48 3 1.224 0.201
    Model 4 32 48 5 1.201 0.199
    Model 5 40 40 7 1.000 0.200
    Table 2 Selection of
    architecture-diverse TabNet
    ensemble members from
    high-performing TPE trials.

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
2. Among the remaining high-performing trials, five models with distinct values of 𝑛𝑛𝑑𝑑, 𝑛𝑛𝑎𝑎, 𝑛𝑛steps, and 𝛾𝛾 were
retained.
3. Each selected model was retrained using the same leakage-controlled training data and evaluated on the com-
mon validation subset.
4. The normalized validation-performance weights were derived from the validation macro F1-scores. Because
the absolute validation scores were not retained in the available experimental record, only the normalized
weights are reported.
Probability-level fusion
For 𝑀𝑀𝑀𝑀 selected models, the ADWTabNet probability vector was calculated as

𝑝𝑝(ens)𝑖𝑖 =
𝑀𝑀
∑
𝑚𝑚𝑚𝑚
𝑤𝑤𝑚𝑚𝑝𝑝(𝑚𝑚)𝑖𝑖 ,
subject to

𝑤𝑤𝑚𝑚 ≥ 0,
𝑀𝑀
∑
𝑚𝑚𝑚𝑚
𝑤𝑤𝑚𝑚 = 1.
Weights were calculated from validation macro F1-scores:

𝑤𝑤𝑚𝑚 = 𝐹𝐹𝐹(𝑚𝑚)macro
∑ 𝑀𝑀𝓁𝓁𝓁𝓁𝐹𝐹𝐹(𝓁𝓁)macro .
The final predicted class was

̂𝑦𝑦𝑖𝑖 = argmax𝑘𝑘 𝑝𝑝(ens)𝑖𝑖𝑘𝑘 .
Equal probability averaging was retained as a comparison to determine whether the performance gain resulted
from architectural diversity, validation-derived weighting, or both.
Attention-based interpretation
Global feature importance was obtained by aggregating feature masks over observations, decision steps, and
ensemble members:

𝐼𝐼𝑗𝑗 = 1𝑀𝑀𝑀𝑀𝑀𝑀
𝑀𝑀
∑
𝑚𝑚𝑚𝑚
𝑁𝑁
∑
𝑖𝑖𝑚𝑚
𝑇𝑇
∑
𝑡𝑡𝑚𝑚
𝑀𝑀(𝑚𝑚𝑚𝑡𝑡)𝑖𝑖𝑗𝑗 .
Class-specific importance was obtained by restricting the aggregation to observations belonging to a particular
crop class. The resulting rankings were interpreted as indicators of model reliance rather than evidence of causal
relationships.
Training, baselines, and evaluation
Data splitting and training protocol
After duplicate control and target-label filtering, the cleaned dataset was divided into training, validation, and test
subsets using stratified group-aware partitioning with a ratio of 70:15:15. Stratification preserved the crop-class

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
distribution, while group constraints ensured that exact or near-duplicate observations were assigned to only one
partition. The training subset was used to estimate preprocessing parameters and model weights, the validation
subset was used for hyperparameter selection and early stopping, and the test subset was reserved exclusively for
final performance assessment.
All data-dependent preprocessing operations were fitted using the training subset only. These operations
included source-distribution harmonization, categorical-vocabulary construction, categorical and numerical
imputation, and numerical scaling. The fitted transformations were subsequently applied unchanged to the vali -
dation and test subsets. This procedure prevented information from the validation or test observations from influ-
encing model construction.
The Sample identifier was excluded from the predictor set before model training. It was retained only for audit-
ing and duplicate-group management because it could encode source, batch, location, or acquisition order rather
than agronomically meaningful information.
For deep-learning models, early stopping was applied using validation macro F1-score. Model parameters
from the epoch with the highest validation macro F1-score were retained for final evaluation. The same training,
validation, and test partitions were used for all baseline and proposed models to ensure a fair comparison.
All stochastic operations were controlled through fixed random seeds, including data partitioning, artificial
masking for imputation assessment, model initialization, mini-batch construction, hyperparameter optimization,
and training of the ensemble members. The independent test subset was not used for hyperparameter selection,
architecture selection, ensemble weighting, or early stopping.
Baseline models
The proposed ADWTabNet framework was compared with representative conventional machine-learning, boost-
ing, and tabular deep-learning models. The conventional baselines included multinomial logistic regression,
k-nearest neighbours, classification and regression tree, and XGBoost. Logistic regression provided a linear mul-
ticlass reference, KNN represented a distance-based nonparametric method, CART provided a single-tree base -
line, and XGBoost represented a strong nonlinear structured-data benchmark.
Two individual TabNet configurations were additionally evaluated: a manually specified baseline TabNet and
a TPE-optimized TabNet. The baseline configuration followed the preliminary experimental setting and used a
decision width 𝑛𝑛𝑑𝑑 = 16,five sequential decision steps, a feature-reuse coefficient 𝛾𝛾 𝛾 𝛾𝛾 5, a sparsity regularization
coefficient 𝜆𝜆 sparse = 1 × 10 −4, and the sparsemax masking function. Training used a batch size of 1024, a maximum
of 200 epochs, and early stopping with a patience of 30 epochs. The model checkpoint corresponding to the
highest validation macro F1-score was retained for final evaluation. All baseline and proposed models used the
same leakage-controlled training, validation, and test partitions. The test subset was not used for hyperparameter
optimization, checkpoint selection, architecture selection, or ensemble-weight estimation.
TPE-based TabNet optimization
TabNet performance is sensitive to architectural and optimization parameters, including decision width nd, atten-
tion width na, number of decision steps n steps, feature-reuse coefficient γ, sparsity regularization λ sparse, learning
rate, batch size, virtual batch size, masking function, and the numbers of shared and independent GLU blocks. A
tree-structured Parzen estimator was used to search this mixed continuous, integer, and categorical hyperparam-
eter space. The search ranges were nd∈[16, 64], na∈[16, 64], nsteps∈3,7, γ ∈ [1.0, 2.0], λsparse ∈ [10⁻⁶, 10⁻²], learn-
ing rate η ∈ [10⁻⁴, 3 × 10⁻²], batch size ∈ {256, 512, 1024, 2048}, virtual batch size ∈ {64, 128, 256}, masking
function ∈ {sparsemax, entmax}, and one to three shared and independent GLU blocks.
Validation macro F1-score was used as the optimization objective because it assigns equal importance to all
crop classes. The TPE search comprised 25 trials, of which 8 were pruned using median-based pruning. The

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
best-performing validation configuration was retained as the optimized individual TabNet, while several addi -
tional high-performing configurations with distinct structural parameters were selected for ensemble construction.
The five retained ADWTabNet members differed in n d, na, number of decision steps, and γ. Their verified
architectural parameters were M₁ = (48, 48, 4, 1.274), M₂ = (40, 48, 4, 1.374), M₃ = (56, 48, 3, 1.224), M₄ = (32,
48, 5, 1.201), and M₅ = (40, 40, 7, 1.000), where each tuple denotes (nd, na, nsteps, γ).
Implementation and reproducibility details
To improve reproducibility, the principal architectural, optimization, and training settings are summarized in
Table 3. All deep-learning experiments used multiclass cross-entropy combined with TabNet sparse-mask regu-
larization. Validation macro F1-score was monitored after each epoch, and early stopping was used to retain the
checkpoint with the highest validation performance. All stochastic stages, including data partitioning, model ini-
tialization, mini-batch construction, hyperparameter optimization, artificial masking for imputation evaluation,
and ensemble-member training, were controlled using fixed random seeds. The same preprocessing and evalu -
ation protocol was applied across all TabNet configurations to ensure that differences in performance reflected
model settings rather than inconsistent data handling.
Parameters that varied among ADWTabNet members are reported explicitly at the member level. Parameters
not varying across members were kept identical within the corresponding training protocol. Software and hard -
ware information is also reported to support computational reproducibility.
All experiments were implemented in Python 3.10.13 using PyTorch 2.2.2 and pytorch-tabnet 4.1.0. Hyper -
parameter optimization was performed with Optuna 3.6.1, while conventional machine-learning and gradient-
boosting baselines were implemented using scikit-learn 1.4.2 and XGBoost 2.0.3, respectively. Experiments
were executed on a workstation equipped with an NVIDIA GeForce RTX 3090 GPU with 24 GB of memory
Parameter Baseline TabNet TPE-optimized TabNet ADWTabNet
Decision width nd 16 TPE-selected M1: 48; M2: 40; M3:
56; M4: 32; M5: 40
Attention width na - M1: 48; M2: 48; M3:
48; M4: 48; M5: 40
Decision steps nsteps 5 M1: 4; M2: 4; M3: 3;
M4: 5; M5: 7
Feature-reuse coefficient γ 1.5 M1: 1.274; M2: 1.374;
M3: 1.224; M4: 1.201;
M5: 1.000
Sparsity coefficient λsparse 1 × 10⁻⁴ Search range 10⁻⁶–10⁻² Member-specific
TPE-selectedMask function Sparsemax Sparsemax or entmax
Initial learning rate 0.02 Search range
10⁻⁴–3 × 10⁻²
Batch size 1024 256, 512, 1024, or
2048
Virtual batch size 64 64, 128, or 256
Maximum epochs 200 Early-stopped training Early-stopped training
Early-stopping patience 30 Validation-based Validation-based
Shared GLU blocks - 1–3 Member-specific
TPE-selectedIndependent GLU blocks - 1–3
Loss function Multiclass cross-
entropy + sparsity
regularization
Same Same
Model-selection metric Validation macro F1 Validation macro F1 Validation macro F1
TPE trials — 25 total, 8 pruned Selected from TPE trials
Train/validation/test split 70/15/15 70/15/15 70/15/15
Table 3 Training and imple-
mentation settings for the
TabNet-based experiments.

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
and an Intel Core i9-12900 K processor under Ubuntu 22.04 LTS. Repeated-run experiments used random seeds
{1,2,3,4,5}.
Architecture-diverse ensemble training
The proposed ADWTabNet ensemble consisted of five TabNet members with different structural configurations.
The members varied in decision width, attention width, number of decision steps, and feature-reuse coefficient.
These differences were introduced to encourage complementary feature-selection patterns and prediction errors.
Each member was trained independently using the same training data and leakage-controlled preprocessing pipe-
line. Validation macro F1-score was used for early stopping and model checkpoint selection. Let
𝑝𝑝(𝑚𝑚)𝑖𝑖 = [𝑝𝑝(𝑚𝑚)𝑖𝑖𝑖 ,… ,𝑝𝑝 (𝑚𝑚)𝑖𝑖𝑖𝑖 ]
denote the class-probability vector produced by member 𝑚𝑚for observation 𝑖𝑖. The validation-derived weight of
member 𝑚𝑚was calculated as

𝑤𝑤𝑚𝑚 =
𝐹𝐹𝐹(𝑚𝑚)macro,val
𝑀𝑀
∑
𝓁𝓁𝓁𝓁
𝐹𝐹𝐹(𝓁𝓁)macro,val
,
subject to

𝑤𝑤𝑚𝑚 ≥ 0,
𝑀𝑀
∑
𝑚𝑚𝑚𝑚
𝑤𝑤𝑚𝑚 = 1.
The weighted ensemble probability was then

𝑝𝑝
(weighted)
𝑖𝑖 =
𝑀𝑀
∑
𝑚𝑚𝑚𝑚
𝑤𝑤𝑚𝑚𝑝𝑝(𝑚𝑚)𝑖𝑖 .
The final crop prediction was ̂𝑦𝑦𝑖𝑖 = argmax𝑘𝑘 𝑝𝑝
(weighted)
𝑖𝑖𝑘𝑘 .The normalized weights were [0.200, , 0.199, , 0.201 0.199 0.200 ] .
Because these values were close to the uniform weight of 0.200, equal probability averaging was also defined as

𝑝𝑝
(equal)
𝑖𝑖 = 1𝑀𝑀
𝑀𝑀
∑
𝑚𝑚𝑚𝑚
𝑝𝑝(𝑚𝑚)𝑖𝑖 .
The best individual member, equal-probability ensemble, and validation-weighted ensemble were evaluated on
the same held-out test subset. The comparison between the best individual model and equal averaging quanti -
fied the contribution of architecture-diverse ensembling, whereas the comparison between equal and weighted
averaging isolated the contribution of the weighting rule. The best individual member was selected according to
validation macro F1-score rather than test performance:

𝑚𝑚∗ = argmax
𝑚𝑚
𝐹𝐹𝐹(𝑚𝑚)macro,val.
After selection, the model was evaluated once on the test subset.
Same-architecture ensemble control
To distinguish the contribution of architectural diversity from the generic variance-reduction effect of ensembling,
a same-architecture control ensemble was additionally evaluated. Five TabNet models using the same optimized

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
architecture were trained independently with different random initializations while preserving the same training
data, preprocessing pipeline, validation protocol, and early-stopping criterion. Their output probabilities were
combined using equal probability averaging. Because the five models shared the same architecture, differences
among their predictions arose primarily from stochastic initialization and optimization rather than structural
variation.
Four strategies were therefore compared: (1) the best individual TabNet model; (2) a five-member same-archi-
tecture ensemble with equal averaging; (3) a five-member architecture-diverse ensemble with equal averaging;
and (4) the proposed validation-weighted ADWTabNet ensemble. This ablation design separates the effects of
generic ensembling, architectural diversity, and validation-derived weighting.
Predictive performance metrics
Classification performance was evaluated using accuracy, macro F1-score, weighted F1-score, macro one-vs-rest
ROC–AUC, and log loss. Accuracy was defined as

Accuracy = 1𝑁𝑁
𝑁𝑁
∑
𝑖𝑖𝑖𝑖
𝕀𝕀 ( ̂𝑦𝑦𝑖𝑖 =𝑦𝑦 𝑖𝑖) ,
where 𝕀𝕀 (⋅ )is the indicator function. For crop class 𝑘𝑘, precision and recall were calculated as

Precision𝑘𝑘 = 𝑇𝑇𝑇𝑇𝑘𝑘𝑇𝑇𝑇𝑇𝑘𝑘 + 𝐹𝐹𝑇𝑇𝑘𝑘 ,
and

Recall𝑘𝑘 = 𝑇𝑇𝑇𝑇𝑘𝑘𝑇𝑇𝑇𝑇𝑘𝑘 + 𝐹𝐹𝐹𝐹 𝑘𝑘 .
The class-specific F1-score was

𝐹𝐹𝐹𝑘𝑘 =2 Precision𝑘𝑘Recall𝑘𝑘Precision𝑘𝑘 + Recall𝑘𝑘 .
Macro F1-score was calculated as

𝐹𝐹𝐹macro = 𝐹𝐾𝐾
𝐾𝐾
∑
𝑘𝑘𝑘𝑘
𝐹𝐹𝐹𝑘𝑘.
Because it assigns equal importance to all crop classes, macro F1-score was used as the primary model-selection
metric. Weighted F1-score was defined as

𝐹𝐹𝐹weighted =
𝐾𝐾
∑
𝑘𝑘𝑘𝑘
𝑁𝑁 𝑘𝑘
𝑁𝑁 𝐹𝐹𝐹𝑘𝑘,
where 𝑁𝑁 𝑘𝑘denotes the number of test observations belonging to class 𝑘𝑘. Macro ROC–AUC was computed using
the one-vs-rest strategy:

AUCmacro = 1𝐾𝐾
𝐾𝐾
∑
𝑘𝑘𝑘𝑘
AUC𝑘𝑘.
Multiclass log loss was calculated as

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7

LogLoss =− 1𝑁𝑁
𝑁𝑁
∑
𝑖𝑖𝑖𝑖
𝐾𝐾
∑
𝑘𝑘𝑖𝑖
𝑦𝑦𝑖𝑖𝑘𝑘log (𝑝𝑝𝑖𝑖𝑘𝑘 +𝜖𝜖 ) ,
where 𝑦𝑦𝑖𝑖𝑖𝑖is the one-hot target indicator and 𝜖𝜖 is a small constant used for numerical stability. Only metrics
directly calculated from the corresponding model outputs were reported. Missing metrics were denoted by an em
dash rather than estimated from related measures.
Repeated-run robustness and statistical analysis
To assess sensitivity to stochastic initialization and data partitioning, the principal models were evaluated across
five independent runs. Each run used a different random seed while preserving the same 70:15:15 stratified
group-aware partitioning strategy, leakage-control rules, preprocessing sequence, model-selection procedure, and
evaluation metrics. The repeated evaluation included XGBoost, the TPE-optimized individual TabNet, the archi-
tecture-diverse equal-probability ensemble, and the validation-weighted ADWTabNet ensemble. For each model,
test accuracy, macro F1-score, and log loss were summarized using the arithmetic mean, sample standard devia-
tion, and 95% confidence interval. For a metric m obtained over R = 5 runs, the sample mean was calculated as

−
𝑚𝑚𝑚 1𝑅𝑅
𝑅𝑅
∑
𝑟𝑟𝑟𝑟
𝑚𝑚𝑟𝑟
and the sample standard deviation as

𝑠𝑠𝑚𝑚 =
√√√
⎷
1
𝑅𝑅𝑅1
𝑅𝑅
∑
𝑟𝑟𝑟𝑟
(𝑚𝑚𝑟𝑟𝑅
𝑟
𝑚𝑚)
2
The 95% confidence interval was calculated using the Student t-distribution:

−
𝑚𝑚𝑚 𝑚𝑚 0.975,𝑅𝑅−𝑅
𝑠𝑠𝑚𝑚√
𝑅𝑅
Because the same random-seed realizations were used for the compared methods, paired two-sided t-tests were
used for model-to-model comparisons. Particular attention was given to ADWTabNet versus the TPE-optimized
individual TabNet and validation-weighted ADWTabNet versus architecture-diverse equal averaging. Statistical
significance was assessed at α = 0.05. The statistical tests were interpreted together with effect magnitude rather
than relying on p-values alone.
Probability calibration
Probability quality was evaluated using the multiclass Brier score. For 𝑁𝑁observations and 𝐾𝐾crop classes, the
normalized score was calculated as

BS = 1𝑁𝑁𝑁𝑁
𝑁𝑁
∑
𝑖𝑖𝑖𝑖
𝐾𝐾
∑
𝑘𝑘𝑖𝑖
(𝑝𝑝𝑖𝑖𝑘𝑘 −𝑦𝑦 𝑖𝑖𝑘𝑘)
2
.
Lower Brier scores indicate greater agreement between predicted probabilities and observed outcomes.
Reliability diagrams were used to compare predicted confidence with empirical accuracy. For each confidence
bin, the mean predicted probability was plotted against the proportion of correctly classified observations. The
diagonal line represented perfect calibration. Calibration analysis was restricted to quantities directly calculated
from the saved test-set probabilities. Expected calibration error and class-specific Brier scores were reported only
when those values were explicitly computed.

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
Imputation evaluation
The categorical and numerical imputation procedures were assessed through artificial masking of observed train-
ing values. 5% of the observed entries were randomly masked while preserving the original values for evaluation.
Categorical imputation performance was measured using weighted F1-score between the original and recon -
structed categories. Numerical reconstruction performance was assessed using mean absolute error, root mean
squared error, and the coefficient of determination:

MAE = 1𝑛𝑛
𝑛𝑛
∑
𝑖𝑖𝑖𝑖
∣ 𝑥𝑥𝑖𝑖 − ˆ𝑥𝑥𝑖𝑖 ∣ ,

RMSE =
√√√
⎷
1
𝑛𝑛
𝑛𝑛
∑
𝑖𝑖𝑖𝑖
(𝑥𝑥𝑖𝑖 − ˆ𝑥𝑥𝑖𝑖)
2
,
and

𝑅𝑅2 =1−
𝑛𝑛
∑
𝑖𝑖𝑖𝑖
(𝑥𝑥𝑖𝑖 − ˆ𝑥𝑥𝑖𝑖)
2
𝑛𝑛
∑
𝑖𝑖𝑖𝑖
(𝑥𝑥𝑖𝑖−
−
𝑥𝑥 )
2
.
Artificial masking was performed within the training subset only, ensuring that imputation-method selection did
not use validation or test values.
Harmonization evaluation
The effect of source harmonization was examined for variables shared between each public source and the local
reference source. Distributional differences before and after harmonization were evaluated using:
● the two-sample Kolmogorov–Smirnov statistic;
● Cohen’s 𝑑𝑑;
● Wasserstein distance.
The Kolmogorov–Smirnov statistic was defined as

𝐷𝐷𝐾𝐾𝐾𝐾 = sup
𝑥𝑥
∣ 𝐹𝐹𝑠𝑠 (𝑥𝑥) −𝐹𝐹 4 (𝑥𝑥) ∣ ,
where 𝐹𝐹𝑠𝑠and 𝐹𝐹4are the empirical cumulative distribution functions of a public source and the reference source,
respectively. Cohen’s effect size was calculated as

𝑑𝑑𝑑
−
𝑥𝑥𝑠𝑠 −
−
𝑥𝑥4
𝑠𝑠pooled
.
A decrease in the absolute effect size and Wasserstein distance after transformation was interpreted as improved
distributional alignment. However, statistical alignment alone was not considered sufficient evidence of improved
generalization; harmonization was also interpreted in relation to downstream classification performance. In addi-
tion to distributional alignment, harmonization sensitivity was evaluated through downstream classification
performance and residual source predictability. This comparison was necessary because a lower distributional
distance does not necessarily imply improved crop classification, and overly aggressive alignment may suppress
genuine geographic or environmental variation. A separate feature-sensitivity experiment was also conducted
for boron because it exhibited the largest residual post-harmonization discrepancy. The complete ADWTabNet

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
pipeline was compared with an otherwise identical model in which boron was excluded from the predictor set.
This analysis assessed whether the incomplete alignment of boron materially affected classification performance.
Source-aware and source-independent evaluation
Source-aware evaluation was added to determine whether the model performance depended on source compo -
sition. Because crop coverage differed strongly among the four contributing datasets, a conventional four-fold
leave-one-source-out protocol was not appropriate for every source.
Source O2 contained only potato observations and therefore could not provide a meaningful multiclass evalu-
ation when used as an independent test source. Conversely, O 4 contained all seven target classes, including two
classes that were not represented in O1, O2, or O3. Holding out O4 would therefore result in test classes that were
completely absent from the training data.
Source-independent multiclass evaluation was consequently restricted to O1 and O3, for which all crop classes
represented in the held-out source were also represented among the remaining training sources. For the O1-hold-
out setting, training used O 2, O3, and O4, whereas O1 was reserved exclusively for testing. For the O 3-holdout
setting, training used O1, O2, and O4, and O3 was reserved for testing.
The held-out source was excluded from all stages of model development, including harmonization-map esti -
mation, imputation-model fitting, feature scaling, hyperparameter selection, early stopping, model training, and
ensemble-weight estimation. These experiments were interpreted as source-transfer diagnostics and not as com-
plete external validation of all seven crop classes (see Table 4).
Interpretability analysis
Global model interpretation was first obtained from the internal feature-selection mechanism of TabNet. Atten -
tion-based importance was derived by aggregating feature masks across test observations, decision steps, and
ensemble members. The resulting scores were normalized and used to construct a global feature ranking. Class-
specific rankings were obtained by restricting the aggregation to observations belonging to each crop class.
Because attention magnitude alone should not be interpreted as definitive evidence of feature importance, an
independent model-agnostic permutation-importance analysis was additionally performed. For each predictor, its
values were randomly permuted within the held-out test set while all other variables were kept unchanged. The
resulting reduction in macro F1-score was used as the permutation-importance measure:
𝑃𝑃𝑃𝑃𝑗𝑗 = 𝐹𝐹𝐹 𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑚𝑚𝑏𝑏𝑚𝑚𝑚𝑚𝑚𝑚 − 𝐹𝐹𝐹(𝑗𝑗𝑗𝑗𝑗𝑏𝑏𝑚𝑚𝑚𝑚𝑗𝑚𝑚𝑏𝑏𝑚𝑚𝑚𝑚𝑚𝑚
where 𝐹𝐹𝐹𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑚𝑚𝑏𝑏𝑚𝑚𝑚𝑚𝑚𝑚 denotes the macro F1-score obtained using the unmodified test data and 𝐹𝐹𝐹(𝑗𝑗𝑗𝑗𝑗𝑗𝑗𝑗𝑗𝑗𝑗𝑗𝑗𝑗𝑚𝑚𝑚𝑚𝑗𝑗𝑚𝑚 denotes the score
after randomly permuting feature j. To reduce variability due to a single random permutation, the procedure was
repeated five times for each feature and the mean decrease in macro F1-score was used for ranking. Permutation
Evaluation
setting
Training
sources
Test
source
Test crop
classes
Multiclass
evaluation
valid?
Reason
Mixed-source
holdout
O1 + O2 + O3

  • O4
    Mixed
    15%
    subset
    7 classes Yes Standard within-distribution
    evaluation
    O1 holdout O2 + O3 + O4 O1 Cotton, corn,
    bean
    Yes All O1 classes exist in remain-
    ing sources
    O2 holdout O1 + O3 + O4 O2 Potato No Test set contains only one class
    O3 holdout O1 + O2 + O4 O3 Wheat, potato,
    corn, bean
    Yes All O3 classes exist in remain-
    ing sources
    O4 holdout O1 + O2 + O3 O4 7 classes No Two O4 classes are absent
    from training
    Table 4 Design of the
    source-independent
    evaluation.

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
importance was calculated using the final ensemble prediction pipeline without model retraining. Agreement
between attention-based and permutation-based rankings was evaluated using two complementary measures:
top-five overlap and Spearman rank correlation. The top-five overlap was defined as
𝑂𝑂𝑂 𝑂
||𝑆𝑆(5)𝑎𝑎𝑎𝑎𝑎𝑎 ∩ 𝑆𝑆(5)𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝||
5
where 𝑆𝑆(5)𝑎𝑎𝑎𝑎𝑎𝑎 and 𝑆𝑆(5)𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝denote the sets of the five highest-ranked predictors according to attention aggregation and
permutation importance, respectively. Spearman’s rank correlation was calculated as

ρ s =1−
6∑
n
j=1d
2
j
n(n2 − 1)
where dj is the difference between the two ranks assigned to feature j. Attention rankings were interpreted as
indicators of model reliance, whereas permutation importance provided an external predictive-sensitivity check.
Neither measure was interpreted as evidence of causal influence.
Results
Harmonization and imputation
Before distributional harmonization, the shared numerical variables exhibited substantial differences across the
four contributing data sources. Pairwise Kolmogorov–Smirnov tests indicated statistically detectable source-
dependent differences for most source–feature combinations, confirming that direct concatenation after unit
conversion alone would preserve a considerable amount of source-specific distributional structure. The training-
derived quantile harmonization substantially reduced these differences for most shared variables. For source O1,
the post-harmonization p-values for potassium, nitrogen, phosphorus, and pH were 0.2509, 0.3347, 0.8002, and
0.9999, respectively. For O 3, all shared numerical variables reached non-significant distributional differences,
with post-harmonization p-values ranging from 0.2348 to 1.000. In O2, seven of the eleven shared properties were
successfully aligned, whereas copper, manganese, zinc, and boron retained statistically detectable differences
from the reference distribution.
Effect-size analysis supported the same general pattern. For O1, the remaining post-harmonization effects were
small, including Cohen’s d = 0.023 for potassium and d = 0.045 for pH. Residual effects for copper, manganese,
and zinc in O 2 were also relatively limited, whereas boron represented the most prominent remaining discrep -
ancy. These results indicate that the harmonization procedure substantially reduced source-dependent marginal
differences but did not force complete equivalence across all soil variables. This distinction is important because
complete statistical alignment is neither expected nor necessarily desirable in heterogeneous agricultural data.
Some between-source differences may reflect laboratory procedures or unit conventions, whereas others may cor-
respond to genuine geographic, environmental, or management-related variation. Harmonization was therefore
evaluated not only through distributional statistics but also through downstream crop-classification performance
and residual source predictability.
Harmonization sensitivity analysis
To determine whether the observed predictive improvement depended specifically on the O 4-reference quantile
transformation, four preprocessing strategies were evaluated under the same downstream ADWTabNet training
and test protocol: no distributional harmonization, source-wise standardization, pooled-reference quantile har -
monization, and the proposed O4-reference quantile harmonization. The comparison is summarized in Table 5.

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
Without explicit distributional harmonization, ADWTabNet achieved a test accuracy of 0.8928 and a macro
F1-score of 0.8891. Source-wise standardization improved these values to 0.8976 and 0.8940, respectively.
Pooled-reference quantile harmonization produced a further improvement, reaching an accuracy of 0.9022 and
a macro F1-score of 0.8994. The O 4-reference quantile strategy achieved the strongest point estimates, with a
test accuracy of 0.9053 and a macro F1-score of 0.9025. Relative to direct pooling without distribution har -
monization, the proposed O 4-reference strategy increased accuracy by 1.25% points and macro F1-score by
1.34% points. Its advantage over pooled-reference quantile harmonization was considerably smaller, amounting
to 0.31% points for both accuracy and macro F1-score. Thus, the improvement cannot be attributed solely to
the use of a particular local reference source; pooled quantile harmonization also produced strong performance,
while the O 4-reference mapping provided an additional but comparatively modest improvement.The auxiliary
source-classification experiment showed a complementary trend. Source identity was highly predictable without
distribution harmonization, with an accuracy of 0.934. Source-classification accuracy decreased to 0.811 after
source-wise standardization, 0.702 after pooled-reference quantile harmonization, and 0.641 after O 4-reference
quantile mapping. This corresponds to an absolute reduction of 29.3% points relative to the non-harmonized
representation.
These findings indicate that improved crop-classification performance was accompanied by reduced source
separability rather than by an amplification of source-specific information. Nevertheless, the source-classifica -
tion accuracy of 0.641 remained substantially above the level expected if source identity had been completely
removed. Harmonization should therefore be interpreted as reducing source-related distribution shift rather than
eliminating all information associated with data origin. The selection of O4 as the reference source was motivated
by its broader feature coverage, representation of all seven crop classes, and correspondence with the intended
local laboratory application setting. However, the relatively small performance difference between the pooled-
reference and O4-reference strategies indicates that the model was not critically dependent on a single reference
choice.
Boron Sensitivity Analysis. Boron was examined separately because it retained the most pronounced residual
source discrepancy after harmonization. To determine whether this incomplete alignment materially influenced
crop classification, the full ADWTabNet model was compared with an otherwise identical model trained after
removing boron from the predictor set (see Table 6).
Removing boron produced only a minor reduction in performance. Test accuracy decreased from 0.9053 to
0.9047, while macro F1-score decreased from 0.9025 to 0.9019. Both changes correspond to 0.06% points. Log
loss increased slightly from 0.2227 to 0.2241.
The limited change in downstream performance indicates that the residual boron mismatch was not responsible
for the overall classification advantage of the proposed pipeline. However, the persistent distributional differ -
ence remains methodologically relevant because it demonstrates that a single global quantile-mapping strategy
does not operate uniformly across all soil properties. Variables with strongly source-dependent distributions may
therefore benefit from feature-specific transformation or domain-adaptation approaches.
Table 6 Sensitivity of ADWTabNet to exclusion of the boron feature.
Feature configuration Test accuracy Macro F1-score Log loss Change in accuracy
Complete feature set, including boron 0.9053 0.9025 0.2227 —
Boron excluded 0.9047 0.9019 0.2241 −0.0006
Harmonization strategy Test accuracy Macro F1-score Source-classifier accuracy
No distribution harmonization 0.8928 0.8891 0.934
Source-wise standardization 0.8976 0.8940 0.811
Pooled-reference quantile harmonization 0.9022 0.8994 0.702
O4-reference quantile harmonization 0.9053 0.9025 0.641
Table 5 Sensitivity of
crop-type classification and
source predictability to the
harmonization strategy.

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
Imputation performance
Following harmonization, the missing-value procedures were evaluated using artificial masking of observed
training entries. 5% of the available training values were masked while preserving their original values for sub -
sequent reconstruction assessment. The iterative Extra Trees categorical imputer achieved an average weighted
F1-score of 0.7195. This indicates moderate recovery of missing categorical information. The poorest recon -
struction in the original analysis was associated with the Sample field, further supporting its exclusion from the
predictive feature set because the field functioned primarily as an identifier rather than as an agronomically mean-
ingful soil attribute. For numerical variables, the iterative low-rank SVD imputer achieved an average coefficient
of determination of 𝑅𝑅2 = 0.5374.under artificial masking. Thus, approximately 54% of the variance in artificially
hidden numerical values was reconstructed from the remaining observed feature structure. The result demon -
strates useful but incomplete recovery and indicates that uncertainty introduced through numerical imputation
remains a potential source of downstream prediction error. Taken together, the preprocessing experiments show
that harmonization and imputation improved data consistency without eliminating all uncertainty. Quantile-based
harmonization reduced source-dependent marginal differences and improved downstream classification, while
the sensitivity analysis showed that the improvement was not exclusively dependent on the choice of O 4 as the
reference. At the same time, residual source predictability and incomplete alignment of boron demonstrate that
source heterogeneity was not completely removed. Similarly, the moderate numerical imputation R 2 indicates
that missing values could not be reconstructed perfectly. These limitations are therefore considered explicitly in
the subsequent interpretation of predictive performance and cross-source generalization.
Source composition and source-independent generalization
The source-support analysis confirmed substantial differences in crop coverage among the four contributing
datasets. O1 represented three crop classes, O2 represented only potato, O3 represented four crop classes, and O4
contained all seven classes. Two classes occurred exclusively in O4, whereas corn, bean, potato, and wheat were
represented in more than one source. This structure confirms that the integrated dataset contains a non-negligible
source–class association and that mixed-source holdout performance alone cannot establish source-independent
generalization. Source-independent evaluation was therefore restricted to O 1 and O 3. Both sources satisfy the
requirement that every crop class represented in the held-out test set is also represented in the remaining training
sources. By contrast, O2 provides only a single-class test set, while a complete O4 holdout would introduce crop
classes absent from training. The original stratified mixed-source evaluation therefore remains the primary seven-
class benchmark. Under this protocol, ADWTabNet achieved a test accuracy of 0.9053 and a macro F1-score of
0.9025. The source-independent experiments should be interpreted as complementary transferability tests rather
than directly equivalent replacements for the seven-class mixed-source benchmark (see Table 7).
Evaluation Test-source status Number of test
classes
Main purpose Reported mixed-
source benchmark
Stratified
holdout
Mixed O1–O4 7 Main predictive benchmark Accuracy = 0.9053
O1 holdout Fully unseen O1 3 Cross-source transfer Separate source-
aware analysis
O2 holdout Fully unseen O2 1 Not used for multiclass
comparison
Not applicable
O3 holdout Fully unseen O3 4 Cross-source transfer Separate source-
aware analysis
O4 holdout Fully unseen O4 7, but 2 unseen
during training
Not used for conventional
multiclass comparison
Not applicable
Table 7 Scope and interpre-
tation of the source-aware
evaluation.

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
Comparative classification performance
The predictive performance of the evaluated models is summarized in Table 9. Among the conventional machine-
learning approaches, KNN obtained the lowest test accuracy of 0.6758 and macro F1-score of 0.6563. Multi -
nomial logistic regression improved test accuracy to 0.7295, but its performance remained below that of the
nonlinear tree-based methods.
CART achieved a test accuracy of 0.8461 and a macro F1-score of 0.8419. XGBoost was the strongest con -
ventional baseline, reaching:
Accuracy = 0.8724,
𝐹𝐹𝐹macro = 0.8670,
𝐹𝐹𝐹weighted = 0.8708,
and
ROCmbox − AUCmacro = 0.9863.
These results confirm that nonlinear feature interactions are important for distinguishing crop classes from het -
erogeneous soil properties. The baseline TabNet model improved test accuracy to 0.8863 and macro F1-score to
0.8822. Its weighted F1-score was 0.8857, while the test log loss was 0.3325. The improvement over XGBoost
was 1.39% points in accuracy and 1.52% points in macro F1-score.
TPE-based Bayesian optimization further improved TabNet performance. The optimized model achieved:
Accuracy = 0.8951,
𝐹𝐹𝐹macro = 0.89𝐹2,
𝐹𝐹𝐹weighted = 0.8945,
ROCmbox − AUCmacro = 0.9916,
and
Logloss = 0.2566.
Compared with the baseline TabNet, optimization increased test accuracy by 0.88% points and macro F1-score
by 0.90% points. Log loss decreased by approximately 22.8%:

0.3325 − 0.2566
0.3325 × 100 = 22.8%.
The proposed ADWTabNet ensemble achieved the strongest overall performance:
Accuracy = 0.9053,
𝐹𝐹𝐹macro = 0.9025,
𝐹𝐹𝐹weighted = 0.9050,
and

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
ROCmbox − AUCmacro = 0.9930.
Relative to XGBoost, ADWTabNet improved test accuracy by 3.29% points and macro F1-score by 3.55% points.
Relative to the optimized individual TabNet, the corresponding improvements were 1.02 and 1.13% points. The
progression in test accuracy was therefore:
0.8724 → 0.8863 → 0.8951 → 0.9053
for XGBoost, baseline TabNet, optimized TabNet, and ADWTabNet, respectively. This consistent improvement
suggests that observation-specific feature selection, Bayesian optimization, and ensemble fusion each contributed
to predictive performance (see Fig. 3).
Ensemble contribution and diversity analysis
The results illustrate the incremental performance changes associated with replacing the strongest conventional
baseline with TabNet, optimizing the TabNet configuration, and combining structurally distinct TabNet models.
Baseline TabNet improved upon XGBoost through sequential, observation-specific feature selection. TPE-based
Fig. 3 Comparative classification performance of the evaluated models. Panels (A)–(C) present test accuracy, macro
F1-score, and weighted F1-score, respectively. Panel (D) compares the available macro one-vs-rest ROC–AUC values,
while Panel (E) shows log loss for the TabNet-based models. Lower log loss indicates better probabilistic prediction quality.
Metrics not directly reported from the corresponding model outputs are omitted.

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
optimization further improved the individual TabNet model, while ADWTabNet provided an additional gain
through probability-level fusion of five architecture-diverse members.
Quantitative prediction diversity
Structural differences among the five selected TabNet models were complemented by quantitative prediction-
diversity analysis. All ten unique model pairs were evaluated using prediction disagreement, Cohen’s k, pairwise
error correlation, and the Q-statistic.
As shown in Table 8, disagreement values ranged from 0.038 to 0.054, with a mean of 0.047. Thus, an aver -
age pair of ensemble members produced different class predictions for approximately 4.7% of test observations.
Cohen’s k ranged from 0.936 to 0.956, with a mean of 0.945, indicating strong but not perfect prediction agree -
ment. Pairwise error correlation ranged from 0.731 to 0.842, with a mean of 0.777. This result indicates that
the models frequently made similar decisions but did not fail on exactly the same observations. The Q-statistic
ranged from 0.891 to 0.946, with a mean of 0.915, further confirming that the ensemble members exhibited sub-
stantial agreement together with measurable complementarity.
Overall, the results show that the ensemble members were neither independent classifiers nor redundant cop -
ies of one another. Instead, they exhibited moderate prediction diversity, which provides a plausible basis for the
improvement obtained through probability-level fusion.
The transition from baseline TabNet to optimized TabNet increased accuracy by 0.88% points, indicating that
architecture and training parameters materially affected TabNet performance. The transition from optimized Tab-
Net to ADWTabNet produced a further 1.02-percentage-point gain, showing that the ensemble captured informa-
tion not fully represented by the strongest individual model.
The five ensemble members differed in decision width, attention width, number of decision steps, and feature-
reuse coefficient. Their validation accuracies ranged from 0.9046 to 0.9141, and their test accuracies ranged from
0.8936 to 0.8977. The normalized ensemble weights were:
[0.200, , 0.199, , 0.201 0.199 0.200 ] .The near-uniform weights indicate that the validation-based weighting scheme
produced predictions very similar to those obtained through equal probability averaging. This result has two
Model Test accuracy Macro F1 Weighted F1 Macro ROC–AUC Log loss
KNN 0.6758 0.6563 0.6711 0.8350 —
Logistic regression 0.7295 0.7182 0.7259 0.9361 —
CART 0.8461 0.8419 0.8461 0.9690 —
XGBoost 0.8724 0.8670 0.8708 0.9863 —
Baseline TabNet 0.8863 0.8822 0.8857 — 0.3325
TPE-optimized TabNet 0.8951 0.8912 0.8945 0.9916 0.2566
Proposed ADWTabNet 0.9053 0.9025 0.9050 0.9930 0.2227
Table 9 Incremental contri-
bution of TabNet optimiza-
tion and architecture-diverse
ensembling.

Model pair Prediction disagreement Cohen’s k Error correlation Q-statistic
M1–M2 0.038 0.956 0.842 0.946
M1–M3 0.047 0.945 0.781 0.918
M1–M4 0.051 0.940 0.754 0.904
M1–M5 0.054 0.936 0.731 0.891
M2–M3 0.044 0.949 0.798 0.925
M2–M4 0.049 0.943 0.768 0.912
M2–M5 0.052 0.939 0.744 0.899
M3–M4 0.046 0.946 0.789 0.920
M3–M5 0.050 0.942 0.759 0.907
M4–M5 0.043 0.950 0.807 0.931
Mean 0.047 0.945 0.777 0.915
Table 8 Pairwise predictive
diversity among ADWTab-
Net members.

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
main implications. First, the five ensemble members exhibited comparable validation performance, and no single
model exerted a disproportionate influence on the final prediction. Second, the additional benefit of validation-
derived weighting was marginal. As shown in Sect. 4.3.1, equal averaging achieved nearly the same predictive
and probabilistic performance as the weighted ensemble. Therefore, the observed improvement should be attrib-
uted primarily to the fusion of architecture-diverse TabNet models rather than to the specific weighting rule.
The validation-based weighting contributed only a minor incremental gain over uniform averaging, while the
principal benefit arose from combining complementary probability outputs across structurally distinct ensemble
members (see Fig. 4).
Contribution of architecture diversity and validation-based weighting
To separate the contribution of architecture-diverse ensembling from that of validation-derived weighting, three
prediction strategies were compared: the best individual TabNet member, equal probability averaging, and vali -
dation-weighted probability averaging. Let 𝑝𝑝(𝑚𝑚)𝑖𝑖 denote the probability vector produced by ensemble member 𝑚𝑚
for observation 𝑖𝑖. The best individual model was selected according to validation performance:

𝑚𝑚∗ = argmax
𝑚𝑚
𝐹𝐹𝐹(𝑚𝑚)macro,val.
Its prediction probabilities were therefore 𝑝𝑝(best)𝑖𝑖 =𝑝𝑝 (𝑚𝑚∗ )𝑖𝑖 .For equal averaging, the five member probability vectors
were assigned identical weights:

𝑝𝑝
(equal)
𝑖𝑖 = 1𝑀𝑀
𝑀𝑀
∑
𝑚𝑚𝑚𝑚
𝑝𝑝(𝑚𝑚)𝑖𝑖 , 𝑀𝑀 = 𝑀𝑀
Thus, 𝑤𝑤
(equal)
𝑚𝑚 = 0.200 ∀ 𝑚𝑚. For validation-weighted averaging, the member weights were calculated from validation
macro F1-scores:
Fig. 4 ADWTabNet classification diagnostics.

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7

𝑝𝑝
(weighted)
𝑖𝑖 =
𝑀𝑀
∑
𝑚𝑚𝑚𝑚
𝑤𝑤𝑚𝑚𝑝𝑝(𝑚𝑚)𝑖𝑖 ,
where

𝑤𝑤𝑚𝑚 =
𝐹𝐹𝐹(𝑚𝑚)macro,val
𝑀𝑀
∑
𝓁𝓁𝓁𝓁
𝐹𝐹𝐹(𝓁𝓁)macro,val
.
The resulting normalized weights were [0.200, , 0.199, , 0.201 0.199 0.200 ] . These weights are very close to the uniform
value of 0.200, indicating that the weighted ensemble is expected to behave similarly to equal probability averag-
ing. The manuscript already notes that the improvement is more plausibly associated with architecture-diverse
probability fusion than with strong reweighting (see Table 10).
The ablation analysis was designed to distinguish the generic effect of ensembling from the additional contri -
butions of architectural diversity and validation-derived weighting. The best individual TabNet achieved a test
accuracy of 0.8977 and a macro F1-score of 0.8940. Combining five independently trained models with the same
optimized architecture increased accuracy to 0.9027 and macro F1-score to 0.8994. Thus, seed-based probability
averaging alone improved accuracy by 0.50% points and macro F1-score by 0.54% points. Replacing the same-
architecture members with structurally different TabNet configurations further increased test accuracy to 0.9051
and macro F1-score to 0.9023. Relative to the same-architecture ensemble, architectural diversity therefore pro -
vided additional gains of 0.24% points in accuracy and 0.29% points in macro F1-score.
The same pattern was observed for probability-quality metrics. Log loss decreased from 0.2488 for the best
individual model to 0.2297 for the same-architecture ensemble and further to 0.2231 for the architecture-diverse
equal ensemble. The normalized multiclass Brier score decreased correspondingly from 0.0215 to 0.0201 and
then to 0.0194. Validation-derived weighting produced only a very small numerical improvement over equal
probability averaging in the original holdout evaluation. The repeated-run analysis in Sect. 4.4.3 further showed
that this difference was not statistically significant. Therefore, the weighted formulation should not be interpreted
as a major independent source of predictive improvement. The total improvement in accuracy from the best indi-
vidual model to ADWTabNet was 0.76% points. Of this improvement, 0.50% points were associated with generic
same-architecture ensembling, 0.24% points with the additional use of architecture-diverse members, and 0.02%
points with validation-derived weighting. These values correspond to approximately 65.8%, 31.6%, and 2.6% of
the total observed accuracy gain, respectively.
These results indicate that the ensemble benefit should not be attributed exclusively to architectural diversity.
Generic probability averaging accounts for the largest share of the improvement, architectural diversity provides
an additional measurable contribution, and validation-derived weighting acts primarily as a minor refinement.
Table 10 Ablation of ensemble architecture diversity and validation-derived weighting.
Prediction strategy Architecture
diversity
Fusion Test
accuracy
Macro
F1
Weighted
F1
Macro
ROC–
AUC
Log
loss
Brier
score
Best individual TabNet No ensemble — 0.8977 0.8940 0.8972 0.9919 0.2488 0.0215
Same-architecture 5-model ensemble No Equal 0.9027 0.8994 0.9024 0.9925 0.2297 0.0201
Architecture-diverse 5-model ensemble Yes Equal 0.9051 0.9023 0.9048 0.9929 0.2231 0.0194
ADWTabNet Yes Validation-based 0.9053 0.9025 0.9050 0.9930 0.2227 0.0193

Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-75366-7
Repeated-run robustness and statistical significance
To determine whether the observed improvements were stable across stochastic realizations, the principal models
were evaluated over five independent runs. Table 11 reports the mean, standard deviation, and 95% confidence
interval for accuracy, macro F1-score, and log loss.
XGBoost achieved a mean test accuracy of 0.8721 ± 0.0024 and a macro F1-score of 0.8666 ± 0.0025. The
TPE-optimized individual TabNet increased these values to 0.8947 ± 0.0021 and 0.8908 ± 0.0023, respectively.
The relatively small standard deviations indicate that both methods were stable across the evaluated runs.
Architecture-diverse equal averaging further increased mean accuracy to 0.9048 ± 0.0017 and macro F1-score
to 0.9020 ± 0.0018. The validation-weighted ADWTabNet ensemble achieved closely comparable values of
0.9049 ± 0.0017 and 0.9021 ± 0.0018. The overlapping confidence intervals of the equal and weighted ensembles
indicate that their repeated-run performance was nearly indistinguishable (see Table 12).
Paired statistical comparisons supported this interpretation. Relative to the TPE-optimized individual TabNet,
ADWTabNet improved mean accuracy by approximately 1.02% points and macro F1-score by approximately
1.13% points. Both differences were statistically significant ( p < 0.001). Log loss was also significantly reduced
from 0.2576 ± 0.0037 to 0.2234 ± 0.0025 (p < 0.001). In contrast, the difference between equal and validation-
weighted architecture-diverse averaging was very small. Mean accuracy differed by only 0.01% points, with a
paired-test p-value of 0.142. Macro F1-score showed the same pattern (p = 0.142), while the difference in log loss
was also not statistically significant (p = 0.105).
These results indicate that the performance improvement of ADWTabNet over an individual optimized TabNet
is reproducible across the evaluated runs, whereas the additional benefit of validation-derived weighting over
equal averaging is not statistically distinguishable. The principal ensemble benefit should therefore be attributed
to probability fusion across multiple complementary models rather than to the weighting rule itself.
Validation of attention-based feature ranking
The aggregated TabNet attention masks ranked humus, phosphorus, electrical conductivity, nitrogen, and pH
as the five highest-ranked predictors. To determine whether this internal attention ranking was supported by
an independent model-agnostic measure, permutation importance was calculated on the held-out test set. The
Comparison Metric Mean difference Paired t-test p Interpreta-
tion
ADWTabNet vs. opti-
mized TabNet
Accuracy + 0.0102 < 0.001 Significant
Macro F1 + 0.0113 < 0.001
Log loss −0.0342 < 0.001 Significant
improvement
ADWTabNet vs. equal
ensemble
Accuracy + 0.0001 0.142 Not
significantMacro F1 + 0.0001 0.142
Log loss −0.0002 0.105
Table 12 Paired statistical
comparison of the principal
TabNet configurations.

Model Accuracy,
mean ± SD
95% CI for
accuracy
Macro F1,
mean ± SD
95% CI for
macro F1
Log loss,
mean ± SD
XGBoost 0.8721 ± 0.0024 0.8692–0.8751 0.8666 ± 0.0025 0.8635–0.8697 0.2884 ± 0.0024
TPE-optimized
TabNet
0.8947 ± 0.0021 0.8922–0.8973 0.8908 ± 0.0023 0.8880–0.8937 0.2576 ± 0.0037
Architecture-
diverse equal
ensemble
0.9048 ± 0.0017 0.9027–0.9070 0.9020 ± 0.0018 0.8997–0.9043 0.2236 ± 0.0025
ADWTabNet 0.9049 ± 0.0017 0

论文原文与出版信息

Scientific Reports 2026-10-18
查看论文原文

继续探索