Morpho-Spectral Projection Analysis (MSPA) for Plant Spectroscopy
Authors: Lucas Prado Osco, Marcelo Santos da Silva, Filipe Vieira Silva, Liang Zhao, Ana Paula Marques Ramos, Ednaldo Jose Ferreira, Roberto Dantas de Medeiros, Amaury Burlamaqui Bendahan, Lucio Andre de Castro Jorge
Organizations: Graduate Program in Environment and Regional Development, University of Western São Paulo (Unoeste), Presidente Prudente, SP 19067-175, Brazil · Institute of Mathematics and Computer Sciences (ICMC), University of São Paulo (USP), São Carlos, SP 13566-590, Brazil · Department of Cartography, School of Technology and Sciences, São Paulo State University (UNESP), Presidente Prudente, SP 19060-900, Brazil · Department of Computing and Mathematics, Faculty of Philosophy, Sciences and Letters at Ribeirão Preto (FFCLRP), University of São Paulo (USP), Ribeirão Preto, SP 14040-901, Brazil · EMBRAPA Instrumentation, Brazilian Agricultural Research Corporation (EMBRAPA), São Carlos, SP 13561-206, Brazil · EMBRAPA Roraima, Brazilian Agricultural Research Corporation (EMBRAPA), Boa Vista, RR 69315-292, Brazil
Plant reflectance spectroscopy across the visible, near-infrared, and shortwave infrared domain encodes foliar biochemical and anatomical traits into contiguous spectral signatures with locally differentiable structure; however, extreme inter-band collinearity and unfavorable sample-to-feature ratios challenge predictive modeling. Conventional dimensionality reduction methods routinely adopted in spectroscopy, are column-permutation invariant: they treat adjacent wavelengths as unordered tabular columns and discard the sequential differential geometry of absorption features. Here, we propose Morpho-Spectral Projection Analysis (MSPA), a supervised dimensionality reduction operator that projects contiguous spectra into a compact morpho-spectral subspace through three complementary blocks: (i) additive continuum-removed absorption depth, area, and red-edge inflection kinematics; (ii) local multi-order singular eigenmodes (0th, 1st, and 2nd derivatives) partitioned across contiguous radiative sub-windows; and (iii) global Fisher-weighted canonical subspaces regularized via trace-normalized isotropic covariance shrinkage. We validated MSPA across 8,963 spectra spanning five plant systems, coupled with six classical machine learning classifiers and four Tabular Foundation Models (TabPFN v3, TabICL v2, TabDPT v1.2, and TabFM). Despite compressing the 1,580-band spectrum by 96%, MSPA outperformed the full spectrum in 92.0% of all benchmarks and conventional reducers in 90.0% of all model-crop evaluations, raising the global mean macro-F1 from 0.7756 (full spectrum) to 0.8520, accelerating in-context inference by up to 126.5x. Designed as a self-contained spectral projection operator, the MSPA method can be directly integrated into spectroscopy workflows via the open-source code available at GitHub: https://github.com/Lucas-Osco/mspa.
Figures & tables
Figure 1: Physical and mathematical mechanics of Module 1 in MSPA ( zi,bio∈R16 ): (A) continuous foliar reflectance signatures ( ρ(λ)∈[0,1] , 400–2500 nm ) illustrating the linear continuum chords ci,v(λ) across the five biochemical absorption valleys ( V1 to V5 ) and the plateau contrast anchors; (B) geometric extraction of the maximum contrast depth ( Dmax,i,v ) and normalized integrated depression area ( Aabs,i,v ) via the additive residual di,v(λ)=ci,v(λ)−xi(λ) (( 2 )–( 3 )); (C) first- and second-derivative inflection kinematics across the red-edge transition window ( Winf=[680,760] nm ), highlighting the maximum slope ( Smax ), concavity wave ( Camp ), and center-of-mass inflection wavelength ( λRE , ( 4 )); and (D) standardized output profile of the 16 Module 1 descriptors across distinct physiological states.
Figure 2: Physical and mathematical mechanics of Module 2 in MSPA ( zi,win∈R24 ): (A) partitioning of the continuous reflectance spectrum ( ρ(λ)∈[0,1] , 400–2500 nm ) into W=8 contiguous radiative sub-windows ( W1 to W8 ) to prevent global NIR amplitude variance from masking narrow spectral features; (B) independent rank-1 SVD basis extraction within window W7 (SWIR 1) across Order 0 ( vw,1(0) , amplitude), Order 1 ( vw,1(1) , local slope ∂ρ/∂λ ), and Order 2 ( vw,1(2) , local concavity ∂2ρ/∂λ2 ) (( 5 )–( 6 )); (C) within-window singular energy captured by the leading eigenmodes across all eight sub-windows; and (D) the resulting 24×D block-diagonal sparse loading matrix demonstrating strict regional isolation with zero cross-window leakage.
Figure 3: Physical and mathematical mechanics of Module 3 in MSPA ( zi,can∈RKcan ): (A) multi-order Fisher discriminability weights ( ωq , ( 7 )) across the continuous state space [X(0),X(1),X(2)] ( 400–2500 nm ), amplifying localized derivative peaks while attenuating invariant scattering plateaus; (B) autonomous estimation of the intrinsic canonical breaking-point ( Kcan∗ ) via the maximum perpendicular deflection distance of Kneedle ( 8 ); (C) exponential stabilization of the within-class covariance condition number κ(ΣW(γ)) via Ledoit–Wolf-type trace-scaled covariance shrinkage ( γ=0.35 , ( 9 )) and rank-safe orthogonal completion across class cardinalities; and (D) class separability in the resulting Module 3 canonical subspace compared to unsupervised PCA (inset).
Figure 4: Comparison between unsupervised PCA loadings and multi-order spectral loadings in MSPA : (A) diffuse, non-zero structure loadings of PC1 – PC3 across all bands dominated by NIR plateau albedo; (B) localized multi-order structure loadings ( Λλ,k(m) , ( 10 )) of Module 3 canonical axes ( MSPA_CAN_01 , MSPA_CAN_02 ) peaking selectively at the red-edge inflection ( 712 nm ) and SWIR lignin/cellulose concavities ( 1685 nm,2180 nm ); (C) exact block-sparse SVD loading vectors ( vw,1(0),vw,1(1),vw,1(2) ) of Module 2 across windows W1 to W8 with zero cross-window variance leakage; and (D) complete 64×D input-to-subspace loading footprint matrix ( ∣ΛMSPA∣ ) across Modules 1 (variables 1–16), 2 (variables 17–40), and 3 (variables 41–64).
Table 1: Characterization of the five plant spectroradiometric datasets ordered by taxonomic and physiological complexity ( C=2→C=3→C=39 ), validation partitioning ( 80% cross-validation development pool vs. 20% fixed holdout test set), and consensus dimensionality ( K∗ ) across the six evaluated representations.
Figure 5: Spectroradiometric characterization and experimental partitioning across the five investigated plant systems ( N=8,963 spectra, D=1,580 bands across contiguous optical blocks S1,S2,S3 ): mean normalized reflectance factor signatures ( ρ(λ)∈[0,1] , ±1 SD shaded envelopes) for binary leaf-level diagnostics in (A) Citrus ( N=1,940,C=2 : Healthy Control vs. Greening Infected), (B) Cotton ( N=1,605,C=2 : Healthy Control vs. Herbivory Infested), and (C) Soybean ( N=991,C=2 : Healthy Control vs. Multi-Pest Infested); (D) ternary feeding-guild differentiation in Maize ( N=474,C=3 : Healthy Control, Chewing Guild, and Sucking Guild); (E) canopy-scale reflectance in Savanna Pastures ( N=3,953,C=39 ) grouped across the five morpho-ecological functional groups; and (F) sample distribution across the 11-partition leak-free validation protocol ( 72% training, 8% validation, and 20% fixed holdout test set) alongside the consensus intrinsic dimensionality ( K∗ ).
Architecture
Model Family
Decision Paradigm
Key Configuration & Regularization
Class Balancing Mechanism
Execution Device
LDA
Classical Linear
Mahalanobis covariance hyperplanes
SVD / Eigen solver with Ledoit–Wolf shrinkage
Post-hoc Bayesian prior reweighting
CPU (64-bit float)
Logistic Regression
Classical Linear
Multinomial log-odds linear model
L2 Ridge penalty ( C=1.0 ), L-BFGS ( 400 iter.)
Native loss sample weights ( wc(f) )
CPU (Multi-core)
SVM-RBF
Classical Kernel
Maximum-margin RKHS hyperplane
RBF kernel ( C=1.0 , γ=scale ), Platt scaling
Native margin sample weights ( wc(f) )
CPU (LibSVM)
k -NN
Classical Distance
Local Euclidean manifold voting
k=5 neighbors, inverse-distance weighting
Post-hoc Bayesian prior reweighting
CPU (Multi-core)
Random Forest
Classical Tree Bagging
Orthogonal recursive partitioning
500 trees, maxfeatures=K , bootstrap
Node impurity sample weights ( wc(f) )
CPU (Multi-core)
XGBoost
Classical Tree Boosting
2nd-order gradient boosted trees
Max 500 trees, η=0.05 , depth 6 , early stop 30
Hessian/gradient sample weights ( wc(f) )
GPU (CUDA Hist)
Table 2: Mathematical taxonomy, decision mechanisms, hyperparameter configurations, and symmetric class-balancing implementations across the ten evaluated classification architectures.
Aggregation Scope
Representation
Dim. ( K∗ )
Mean F1Macro±SD
Median F1Macro
Mean PRR±SD
Mean ΔF1 vs. Full
MSPA Win Rate
Wilcoxon p -value
Global ( 5 Systems ×10 Models)
Full Spectrum (Unreduced)
1,580
0.7756±0.1581
0.7921
1.0000±0.0000
0.0000
46/50 ( 92.0% )
5.32×10−10
PCA (Unsupervised Orthogonal)
10–50
0.7629±0.1544
0.7440
0.9871±0.0906
−0.0126
49/50 ( 98.0% )
5.33×10−15
PLS-DA (Supervised Latent)
8–21
0.7866±0.1297
0.7628
1.0325±0.1450
+0.0110
46/50 ( 92.0% )
1.61×10−12
UMAP (Nonlinear Manifold)
6–8
0.6307±0.2007
0.6918
0.8060±0.1562
−0.1449
50/50 ( 100.0% )
1.78×10−15
SOM (Kohonen Topological)
64–100
0.7237±0.1724
0.7335
0.9334±0.1172
−0.0519
50/50 ( 100.0% )
1.78×10−15
MSPA (Proposed Operator)
64
0.8520±0.0999
0.8272
1.1280±0.1781
+0.0764
Reference (Rank 1)
—
Table 3: Global, paradigm-stratified, and plant-system-stratified performance summary across the six dimensionality representations ( N=50 paired system–model combinations across 10 cross-validation folds). Values report mean F1Macro , standard deviation (SD), median, Performance Retention and Gain Ratio ( PRR vs. Full Spectrum), absolute difference ( ΔF1 ), and pairwise Wilcoxon signed-rank test statistics comparing MSPA against each reference representation.
Figure 6: Two-dimensional subspace projection matrix ( 5 Plant Systems×5 Dimensionality Reduction Methods ) on out-of-training evaluation samples ( 90% confidence covariance ellipses and 2D Fisher cluster separability index JF=Tr(SB)/Tr(SW) ). Rows follow the taxonomic complexity gradient from binary foliar stress in Citrus , Cotton , and Soybean ( C=2 ) and ternary feeding groups in Maize ( C=3 ) to canopy-scale species discrimination in Savanna Pastures ( C=39 , colored across the five morpho-ecological functional groups).
Figure 7: Cross-system mean F1Macro heatmap across the ten classification architectures and six dimensionality representations (A), and mean absolute ΔF1 gain/loss relative to the Full Spectrum comparing PCA, PLS-DA, and the proposed MSPA operator (B).
Plant System ( C )
Model Architecture
Full Spectrum ( 1580 )
PCA
PLS-DA
UMAP
SOM
MSPA ( 64 , Mean±SD )
PRRMSPA
ΔF1MSPA
Citrus ( C=2 )
SVM-RBF (Kernel Margin)
0.9742
0.9501
0.9782
0.9417
0.9792
0.9860±0.0041
1.0121
+0.0118∗†
Random Forest (Tree Bagging)
0.9512
0.9639
0.9866
0.9310
0.9313
0.9821±0.0052
1.0326
+0.0310∗
TabICL v2 (TFM)
0.9766
0.9397
0.9779
0.9218
0.9503
0.9819±0.0045
1.0054
+0.0052∗
XGBoost (Tree Boosting)
0.9661
0.9580
0.9823
0.9322
0.9332
0.9814±0.0058
1.0159
+0.0153∗
TabDPT v1.2 (TFM)
0.9750
0.9389
0.9774
0.9177
0.9270
0.9809±0.0049
1.0061
+0.0059∗
LDA (Linear Covariance)
0.9792
0.9591
0.9766
0.9387
0.9488
0.9801±0.0044
1.0009
+0.0009
Table 4: Complete cross-validated holdout test performance matrix (mean F1Macro across 10 folds) over the five plant spectroscopy datasets, ten classification models, and six dimensionality representations, along with the MSPA standard deviation ( ±SD ), Performance Retention and Gain Ratio ( PRR ), and absolute difference ( ΔF1 ) relative to the Full Spectrum. Bold values denote the best representation per row. Superscripts indicate statistically significant MSPA gains ( p<0.05 , paired Wilcoxon test across folds) over the Full Spectrum ( ∗ ) and over the best reference reducer ( † ).
Plant System ( C )
Mod. 1 Only ( 16 vars)
Mod. 2 Only ( 24 vars)
Mod. 3 Only ( 24 vars)
Mod. 2 + Mod. 3 ( 48 vars)
Full MSPA ( 64 vars)
Δ(Mod. 2+3−Mod. 3)
Δ(Full−Mod. 2+3)
(Continuum & Inflection)
(Local Window SVD 0,1,2)
(Global Fisher Canonical)
(Pure Linear Multi-Order)
(Complete Architecture)
(Local Window Effect)
(Nonlinear Hull Effect)
Citrus ( C=2 )
0.9639
0.9785
0.9777
0.9809
0.9842
+0.0032
+0.0033
Cotton ( C=2 )
0.7441
0.7547
0.8053
0.8099
0.8182
+0.0046
+0.0083
Soybean ( C=2 )
0.7840
0.8253
0.8645
0.8730
0.8729
+0.0085
−0.0001
Maize ( C=3 )
0.6272
0.6660
0.7175
0.7256
0.7310
+0.0081
+0.0054
Savanna Pastures ( C=39 )
0.5944
0.6835
0.7869
0.7792
0.7844
−0.0077
+0.0052
Table 5: Internal architectural ablation of the MSPA operator across the five plant spectroscopy datasets ordered by class cardinality (mean F1Macro across Random Forest, SVM-RBF, and LDA over 10 cross-validation folds). Columns compare isolated modules against the linear multi-order combination (Modules 2 + 3) and the complete three-module operator.
Figure 8: Physical explainability and spectral perturbation saliency across the 64 semantic variables of MSPA: (A) ranking of the top 15 most discriminative variables color-coded by internal module; (B) perturbation saliency heatmap ( ΔLCE in nats) across the eight radiative sub-windows ( W1 to W8 ) and five plant systems; (C) cumulative share of decision weight partitioned by differential order (showing that 73.4% of total importance originates from 1st and 2nd derivative features); and (D) cross-paradigm explainability concordance between tree ensemble gain (Random Forest + XGBoost) and TFM perturbation saliency (TabPFN v3 + TabICL v2).
Figure 9: Intrinsic breaking-point mechanics ( MSPA(n_components=’auto’) ) and subspace dimensionality scaling laws: (A) normalized cumulative Fisher-weighted singular energy ( yk , left axis) and Kneedle perpendicular deflection distance ( D(k) , right axis) across the five plant systems; (B) cross-system mean F1Macro scaling curves across subspace dimensions K∈[8,96] for MSPA, PLS-DA, and PCA; (C) 3D response surface of test F1Macro as a function of subspace dimension ( K ) and training context size ( %Ntrain ) tracing the MSPA(’auto’) ridge trajectory; and (D) empirical equivalence between autonomous Kneedle estimation ( ’auto’ ) and the fixed benchmark configuration ( K∗=64 ).
Figure 10: Three-dimensional weight-space cross-entropy loss landscapes LCE(Θ∗+αu1+βu2) , basal Shannon entropy contours ( Hnorm ), and projected Gradient Descent trajectories ( Θ(t) ) on the holdout test set following filter-normalized perturbation [ 32 ] for (A) PCA, (B) PLS-DA, and (C) the proposed MSPA subspace.
Metric Dimension
Model Architecture
Full Spectrum ( 1580 )
PCA ( 10–50 )
PLS-DA ( 8–21 )
SOM ( 64–100 )
MSPA ( 64 )
MSPA vs. Full Spectrum Effect
Normalized Entropy ( Hnorm↓ )
TabPFN v3
0.2031
0.2187
0.1645
0.2336
0.0870
−57.2% uncertainty
TabICL v2
0.2419
0.2903
0.2034
0.2584
0.0876
−63.8% uncertainty
TabDPT v1.2
0.5126
0.4106
0.2636
0.3524
0.1433
−72.0% uncertainty
XGBoost
0.4536
0.5041
0.4653
0.5318
0.3251
−28.3% uncertainty
TabFM
0.5329
0.6502
0.3808
0.3917
0.3798
−28.7% uncertainty
Random Forest
0.6388
0.7521
0.6589
0.6922
0.5202
−18.6% uncertainty
Table 6: Comparison of probabilistic uncertainty (Normalized Shannon Entropy Hnorm ), selective error detection capability ( AUROCErr ), and per-sample inference latency ( ms ) across representations (mean across the five plant spectroscopy datasets).
Figure 11: Comparison of predictive uncertainty via Normalized Shannon Entropy (A), selective error detection reliability via AUROCErr (B), and per-sample inference latency on a logarithmic scale (C) across representations.
Figure 12: Three-dimensional response surfaces of in-context generalization and probabilistic calibration: (A) 3D In-Context Learning (ICL) response surface across training context subsample fraction ( 15%–100% of Ntrain ) and geographic extrapolation horizon (Transect Bins 1→5 ); and (B) 3D softmax temperature calibration surface ( τ×Subspace Method×ECE ), highlighting the minimum Expected Calibration Error ( ECE∗ ) achieved by MSPA along the front-left calibration trajectory.
Figure 13: In-context sample efficiency and spatial extrapolation stability in Savanna Pastures ( C=39 ): (A) holdout test F1Macro across training context fractions ( 15%–100% of Ntrain ), showing that MSPA with 30% context surpasses 100% context under PCA and PLS-DA; and (B) spatial extrapolation decay across sequential field transect horizons (Bins 1→5 ).
Figure 14: Pareto efficiency trade-off between computational execution time (logarithmic scale) and cross-system mean F1Macro for Classical Machine Learning classifiers (A, mean training and evaluation time per fold in seconds) and Tabular Foundation Models (B, in-context execution latency in milliseconds per sample). Directional arrows trace the transition of each architecture from the Full Spectrum ( D=1,580 bands, circles) to the proposed MSPA subspace ( K∗=64 variables, stars), with PCA (diamonds) and PLS-DA (squares) shown for reference.
Table 7: Comparative synthesis between historical performance baselines reported in previous studies and the results achieved by the proposed MSPA operator coupled with classical classifiers and Tabular Foundation Models (ordered from C=2 to C=39 ).
Figure 15: Relative discriminative contribution of the three internal MSPA modules across the five plant systems (A), and performance progression over historical baselines reported in previous studies (B).
Osnabrück University, Joint Lab Artificial Intelligence and Data Science, Osnabrück, Germany · Leibniz Institute for Agricultural Engineering and Bioeconomy (ATB), Department of Agromechatronics, Potsdam, Germany · German Research Center for Artificial Intelligence (DFKI), Cooperative and Autonomous Systems (CAS), Osnabrück, Germany
Data Observatory Foundation, ANID Technology Center No. DO210001, Santiago, Chile, 7510277 · Center for Climate Resilience Research (CR)2, University of Chile, Santiago, Chile, 8370449 · Sensor-based Geoinformatics (geosense), University of Freiburg, Freiburg, Breisgau, Germany +2
Department of Computer Science Lucerne University of Applied Sciences and Arts Risch-Rotkreuz, 6343 Switzerland · Institute of Applied Mathematics and Physics ZHAW Zurich University of Applied Sciences Winterthur, 8400 Switzerland