Unbalanced Optimal Transport Dictionary Learning for Unsupervised Hyperspectral Image Clustering Abstract Hyperspectral images capture vast amounts of high-dimensional spectral information about a scene, making labeling an intensive task that is resistant to out-of-the-box statistical methods. Unsupervised learning of clusters allows for automated segmentation of the scene, enabling a more rapid understanding of the image. Partitioning the spectral information contained within the data via dictionary learning in Wasserstein space has proven an effective method for unsupervised clustering. However, this approach requires balancing the spectral profiles of the data, blurring the classes, and sacrificing robustness to outliers and noise. In this paper, we suggest improving this approach by utilizing unbalanced Wasserstein barycenters to learn a lower-dimensional representation of the underlying data. The deployment of spectral clustering on the learned representation results in an effective approach for the unsupervised learning of labels. Joshua Lentz 1 , Nicholas Karris 2 , Alex Cloninger 2 , James Murphy 1 1 Tufts University, Department of Mathematics Medford, MA 02155, USA 2 Index Terms — Hyperspectral imaging, unsupervised clustering, dictionary learning, unbalanced optimal transport 1 Introduction Hyperspectral imaging captures a huge amount of spatial and spectral data from materially diverse scenes. Effectively labeling the resulting data set typically requires large quantities of hand-labeled training data, which are often difficult and time-consuming to acquire. In the case that such labeled data are available, supervised learning methods such as support vector machines [ 16 ] , random forests [ 13 ] , and deep learning approaches [ 15 , 14 ] provide high-accuracy labels of HSI data [ 2 ] . The lack of labeled training data has motivated the development of semi-supervised and unsupervised learning methods [ 25 ] which require little or no training data. Of particular challenge is the high dimensionality of the underlying data, which makes standard statistical learning techniques unreliable. In this paper, we seek to further develop a prior unsupervised approach that deployed dictionary learning in the Wasserstein space. The core idea of this method is to represent each HSI data point as a probability distribution supported on the space of its reflectances. We then deploy iterative methods to learn a set of dictionary atoms and weights which reconstruct the original data via the (nonlinear) Wasserstein barycenter. This set of weights provides a lower-dimensional representation of the original data on which spectral clustering was performed, providing unsupervised labeling of HSI scenes. One drawback of this approach was the necessity to normalize the HSI data as probability distributions, potentially blurring classes, and sacrificing robustness to outliers and noisy data. As an improvement, we suggest modifying the prior approach to instead use unbalanced Wasserstein barycenters , allowing for the differing total masses of the HSI data points. Moreover, unbalanced optimal transport has been shown to be more robust to outliers in statistical applications [ 4 ] . We refer to this approach as Unbalanced Optimal Transport Dictionary Learning, and explore its implementation and improvements below. The rest of this paper is organized as follows: in Section 2, we review optimal transport, unbalanced optimal transport, and Wasserstein dictionary learning as it relates to HSI labeling. In Section 3, we discuss our modification to Wasserstein dictionary learning, both in theory and in practice. In Section 4, we provide numerical results on a suite of known HSI labeling benchmarks. We conclude in Section 5 by providing directions for future research and other areas of interest which may benefit from our method. 2 BACKGROUND Unsupervised learning analyzes HSI data, which we view as distributions, \{\mu_{i}\}_{i=1}^{n}\in\mathbbm{R}^{d} , and generates a label set \{y_{i}\}_{i=1}^{n} with each y_{i}\in\{1,2,..,K\} where K is the number of clusters. The value for K can either be learned or estimated, though a clean measurement of labeling accuracy only exists when our chosen number of clusters matches the number of ground truth classes. Typical methods seek to find geometric and statistical patterns in the dataset \{\mu_{i}\}_{i=1}^{n} to infer clusters [ 22 ] . We seek to build on a class of unsupervised approaches which leverage spectral clustering [ 18 ] , which parses the structure of a latent graph to cluster the underlying data [ 5 ] . For some metric d , we define W\in\mathbbm{R}^{n\times n} to be the k -nearest neighbors graph with respect to some metric for suitable k . Clustering is then performed by analyzing the lowest frequency eigenvectors of the normalized graph Laplacian L=I-D^{-\frac{1}{2}}WD^{-\frac{1}{2}} where D\in\mathbbm{R}^{n\times n} is the diagonal degree matrix with D_{ii}=\sum_{j=1}^{n}W_{ij} for all i=1,...,n [ 24 ] . Typically, we then perform k -means on the k eigenvectors of L with the smallest eigenvalues. Previously, [ 10 , 11 ] considered recasting HSI pixels as probability distributions. They then leveraged iterative methods to find a learned representation of the underlying data via the nonlinear reconstruction of the Wasserstein barycenter. This method was the so-called Wasserstein dictionary learning [ 10 , 21 , 17 ] . Optimal transport, and in particular the Wasserstein distance, is naturally suited for comparing probability distributions. For the sake of simplicity, we will introduce the definitions as they relate to 1-dimensional discrete optimal transport. For a deeper exploration of optimal transport, we refer the reader to [ 23 ] . In this narrow case, we restrict ourselves to probability vectors \mu=(\mu_{1},...,\mu_{n}) and \nu=(\nu_{1},..,\nu_{m}) . Define the set of couplings \Pi(\mu,\nu)\subset\mathbbm{R}_{\geq 0}^{n\times m} as all X such that \sum_{j=1}^{m}X_{ij}=\mu_{i} and \sum_{i=1}^{n}X_{ij}=\nu_{j} . Let C\in\mathbbm{R}_{\geq 0}^{n\times m} be a cost matrix given by C_{ij}=|x_{i}-y_{j}|^{2} where x_{i},y_{j} are in the support of \mu and \nu respectively. In order to guarantee strict convexity and efficient computation, it is standard to add an entropy term, \epsilon H(\pi)=\epsilon\sum_{i=1}^{n}\sum_{j=1}^{m}\pi_{ij}\log(\pi_{ij}) , to the problem, which is known to give accurate approximations of the true solution [ 8 ] . Lastly, define \langle A,B\rangle=\sum_{i=1}^{n}\sum_{j=1}^{m}A_{ij}B_{ij} to be the Frobenius inner product. Then the entropic regularized optimal transport problem seeks to minimize (1) for some \epsilon>0 . The effect of \epsilon is to act as a smoothing factor on the transport plan, with larger \epsilon blurring the solution to the unregularized problem. \displaystyle OT_{\epsilon}(\mu,\nu)=\min_{X\in\Pi(\mu,\nu)}\langle C,X\rangle+\epsilon H(X). (1) We call the above transport problem balanced due to the strict requirement that both distributions, \mu and \nu , have the same total mass. Unlike optimal transport, unbalanced optimal transport seeks to lift this restriction and instead penalizes the marginal terms, X_{1},X_{2} , using Csiszár divergences; in this case, we use the KL divergence [ 7 ] . In unbalanced optimal transport, transport still occurs, but some mass is created/destroyed as transport takes place. As before, we incorporate an entropic regularization term enabling the use of a Sinkhorn-like algorithm for more efficient computation [ 6 ] . The entropic unbalanced optimal transport problem (in one dimension on discretely supported measures) is as follows: given vectors \mu=(\mu_{1},..,\mu_{n}) and \nu=(\nu_{1},...,\nu_{m}) such that \mu_{i},\nu_{i}\geq 0 find X\in\mathbbm{R}_{\geq 0}^{n\times m} minimizing the following: \displaystyle UOT_{\epsilon}^{\tau}(\mu,\nu)= \displaystyle\min_{X\in\Pi(\mu,\nu)}\langle X,C\rangle+\tau KL(X\mathbbm{1}_{m}||\mu) (2) \displaystyle+\tau KL(X^{T}\mathbbm{1}_{n}||\nu)+\epsilon KL(X||\mu\nu^{T}). Here, \tau and \epsilon are the marginal and entropic regularization terms respectively, \mathbbm{1}_{n} is the vector of n 1’s, and \mu\nu^{T}\in\mathbbm{R}^{n\times m} is the outer product of \mu and \nu . The difference in entropy term when compared to (1) arises from the fact that \int d\mu d\nu\neq 1 . Indeed, the entropy term, H(X) , differs from KL divergence by a constant when \int d\mu d\nu\neq 1 . Moreover, this entropy term also melds nicely with a Sinkhorn-like algorithm, see [ 6 ] . A natural question in the context of optimal transport is to ask for an average of distributions, probabilities or otherwise. This leads us to the concept of the barycenter, which is the distribution minimizing the transport cost from a weighted set of distributions onto itself. For a set of m distributions \{\nu_{j}\}_{j=1}^{m}\in\mathbbm{R}^{d}_{\geq 0} and a vector of weights \Lambda=(\lambda_{1},...,\lambda_{m}) such that \sum_{i=1}^{m}\lambda_{i}=1 , we can define the entropic unbalanced optimal transport barycenter [ 6 , 1 ] to be: \displaystyle P(\{\nu_{j}\}_{j=1}^{m},\Lambda)=\argmin_{\mu\in\mathbbm{R}^{d}_{\geq 0}}\sum_{j=1}^{m}\lambda_{i}UOT_{\epsilon}^{\tau}(\mu,\nu_{j}). (3) For an excellent exploration of balanced barycenters in the space of probability distributions, we refer the reader to [ 1 ] . For the first treatment of unbalanced barycenters, see [ 6 ] . Fig. 1 : Pictured here is the balanced (left) and unbalanced (right) barycentric interpolation between two Gaussian distributions with the same variance using \tau=0.5 and \epsilon=0.001 . Notice that the unbalanced barycenters do not obey strict mass conservation, but still take the general shape of the reference distributions. We can invert the barycenter problem by seeking a set of weights and distributions whose barycenter yields an approximation of a predefined distribution [ 21 ] . Given HSI data \{\mu_{j}\}_{j=1}^{m}\in\mathbbm{R}^{d} , we interpret each pixel as a distribution supported on the spectral bands captured by the sensor. We seek to find k dictionary atoms \{\nu_{i}\}_{i=1}^{k}=D\in\mathbbm{R}^{d\times k}_{\geq 0} , \nu_{i}=(\nu_{i,1},...,\nu_{i,d}) , and m weight vectors \Lambda=\{\Lambda_{j}\}_{j=1}^{m}\in\mathbbm{R}^{k\times m} , \Lambda_{j}=(\lambda_{j,1},...,\lambda_{j,k}) , such that each barycenter P(D,\Lambda_{i})\approx\mu_{i} . Specifically, for some loss function \mathcal{L} , we seek to minimize: \displaystyle\min_{D,\Lambda}\mathcal{E}(D,\Lambda)=\sum_{j=1}^{m}\mathcal{L}(P(D,\Lambda_{i}),\mu_{i}) (4) The aim of this scheme is to faithfully reconstruct the underlying distributions using a learned set of dictionary atoms and weights. In practice, this enables us to leverage the underlying geometry of large data sets to reduce the scale of the data considerably in the form of the weight matrix \Lambda . To solve this non-convex optimization problem, we use an iterative method and automatic gradient approximations to repeatedly update D and \Lambda [ 21 ] . 3 Clustering HSI with Unbalanced Barycenters In the case of HSI data, we view pixels, \{\mu_{j}\}_{j=1}^{m} , as distributions supported on the set of reflectance bands. For instance, the 7832 pixels of the Salinas A data set are supported on 201 bands spaced roughly 4 nm apart (some are slightly further after removal of water reflectance bands). This framing allows us to generate a reconstruction of the HSI data as a set of learned barycenters. In our case, the cost matrix is a square matrix using quadratic cost between the reflectance bands on which the pixels are supported. In this way, if learned weights \Lambda_{i} and \Lambda_{j} are close then the underlying pixels, \mu_{i} and \mu_{j} , must also have similar distributions. Notably, this was not necessarily true for when using balanced optimal transport and normalizing the data. One could imagine two pixels whose distribution of reflectances differed by a scalar multiple. In this case, the reweighting of distributions to be probabilities would have obscured this difference. By incorporating the information about total reflectance, we expect to get weights which better capture the underlying data. Our clustering process proceeds in two steps. Firstly, we need to perform the learning phase to generate weights, \{\Lambda_{j}\}_{j=1}^{m} of the underlying data \{\mu_{j}\}_{j=1}^{m} and then, secondly, we need to perform spectral clustering on the resultant matrix of weights \Lambda . In our case we use the metric d(\mu_{i},\mu_{j})=||\Lambda_{i}-\Lambda_{j}||^{2} for spectral clustering. The main process for doing this dictionary learning is to (i) initialize a random subset of the underlying data, X=\{\mu_{i}\}_{i=1}^{n} , (ii) randomly initialize a vector of weights \Lambda_{i} for each \mu_{i} and starting dictionary atoms D_{i} , (iii) compute the unbalanced barycenters P(D,\Lambda_{i}) for all i , (iv) compute the loss \mathcal{L}(P(D,\Lambda_{i}),\mu_{i}) , (v) use automatic differentiation of the loss function to approximate gradients for D and \Lambda and then use backward propagation to update D and \Lambda [ 19 ] . We note it is necessary to impose a floor on the values for D so as the values do not become negative and to normalize the \Lambda_{i} ’s to sum to 1 after this update. For our implementation, we set the non-positive values of X to 1\mathrm{e}{-15} , a value just above the machine precision limit. This is detailed in Algorithm 1. Algorithm 1 Unbalanced Optimal Transport Dictionary Learning 1: Initialize X , C, \epsilon , \tau , and initial weights ( \Lambda ) 2: Initialize optimizer (e.g., ADAM) for updating dictionary atoms D and weights \Lambda 3: while not converged do 4: \Lambda\leftarrow\text{Softmax}(\Lambda) 5: P\leftarrow P(D,\Lambda) \triangleright Compute barycentric reconstructions of each histogram x_{i} 6: \text{loss}\leftarrow\mathcal{L}(P,X) \triangleright Compute loss 7: Compute gradients of D and \Lambda : loss .\text{backward()} 8: Use gradients to update D and \Lambda : optimizer.step() 9: Set all non-positive entries of D to be 1\mathrm{e}{-15} 10: end while 11: return D and \Lambda After learning barycentric weights \{\Lambda_{i}\}_{i=1}^{n} , they can be used for spectral clustering. We employ the same overall algorithm used in [ 10 ] , barycentric coding spectral clustering, which is detailed in Algorithm 2, unbalanced barycentric coding spectral clustering (UBCSC). It should be noted that, since UBCSC produces labels not inherently aligned with the ground truth classes, we perform an optimal matching step prior to evaluation. Specifically, we apply the Hungarian algorithm to find the permutation of cluster labels that maximizes agreement with the ground truth. All evaluation metrics discused later occur after this matching. Algorithm 2 Unbalanced Barycentric Coding Spectral Clustering (UBCSC) 1: Inputs: HSI data: \{\mu_{j}\}_{j=1}^{m} ; number of atoms: k ; number of nearest neighbors: NN ; number of clusters: K ; number of pixels: n . 2: Select a random subset of n pixels of \{\mu_{j}\}_{j=1}^{m} , \{\tilde{\mu}_{i}\}_{i=1}^{n} 3: Run algorithm 1 on \{\tilde{\mu}_{i}\}_{i=1}^{n} to learn barycentric weights \{\Lambda_{i}\}_{i=1}^{n} 4: Run K -means on the K lowest frequency eigenvectors of the symmetric normalize Laplacian of the NN graph associated with weights \{\Lambda_{i}\}_{i=1}^{n} to acquire labels \{\tilde{y}_{i}\}_{i=1}^{n} . 5: Match cluster labels \{\tilde{y}_{i}\}_{i=1}^{n} to ground truth via Hungarian algorithm. 6: Assign labels to the m-n unlabeled pixels via majority vote of the 10 \ell^{1} nearest neighbors of the labeled pixels \{\tilde{\mu}_{i}\}_{i=1}^{n} . These resulting in-painted labels are \{y_{j}\}_{j=1}^{m} , the fully labeled data set. 7: Return labels \{y_{j}\}_{j=1}^{m} One important, but as of yet undiscussed, part of the above algorithm is the choice of loss function, \mathcal{L}(P,X) . Following the suggestions outlined in [ 21 ] we tried four different loss functions: TV , quadratic, KL , and a unbalanced transport based loss. Similar to what was observed in [ 21 ] , we found that all choices of loss function perform similarly in creating accurate reconstructions of the underlying data. Notably, the unbalanced transport loss incurs a higher computational cost and does not make up for this deficit in additional accuracy. For all of the tests we ran, we used the quadratic loss given by \mathcal{L}(P,X)=||P-X||_{2}^{2}=\sum_{i=1}^{n}\sum_{j=1}^{d}(P_{ij}-X_{ij})^{2} . We found this resulted in generally faithful reconstructions of the underlying distributions, while maintaining simplicity and run-time efficiency. Python code, in part utilizing the POT library [ 9 ] , and all experiments are freely available through GitHub at https://github.com/jlentz02/WDL. 4 EXPERIMENTAL RESULTS We tested unbalanced barycentric coding spectral clustering (UBCSC) on the Salinas A, Indian Pines, Pavia Centre, and Pavia University hyperspectral data sets which are freely available online [ 12 ] . We considered two scenarios and have two different metrics for gauging them. In the first scenario we suppose that we know the number of ground truth classes and assign an equal number of labels. In this case, we gauge the performance of the algorithm with labeling accuracy. This is the total number of correctly labeled pixels divided by the total number of pixels before in-painting. In the second scenario, we let the number of labels exceed the number of ground truth classes and score a purity metric based on how well each labeled class represents its majority ground truth. Understandably, the later generates more appealing results, but is mostly for identifying latent classes that are present in the data, but not in the ground truth labeling. For instance, the lower right hand corner of the Salinas A data set is notorious for being mislabeled under unsupervised clustering approaches, with this modification identifying it as two separate classes. Further complicating our approach is the large number of hyperparameters, and their varying effects on the resulting labeling accuracy. Due to computational considerations, we divide each HSI pixel by the total mass of the pixel with highest mass. This results in the total mass of each pixel falling between 0 and 1 . Similarly, we rescale the cost matrix to have largest value 10 . This rescaling has no effect on the computation of unbalanced barycenters when considering that the hyperparameter \tau , the marginal relaxation term, already acts as a scalar on the cost matrix. However, our observed values of \tau , which yield strong results, are impacted by this. In general, we observed strong results when \tau is approximately equal to the total mass of the underlying data, \epsilon is in the range [0.07,0.12] , and the number of atoms, k , is between two and four times the number of ground truth labels. In general, the values for the number of nearest neighbors, NN , is highly subject to the underlying scene. We observed that dense clusterings of similar pixels benefited from higher values, such as in Salinas A, and sparser scenes, such as Pavia Centre, benefited from fewer nearest neighbors. Optimal tuning of hyperparameters, when accounting for effects on run-time and accuracy, is an ongoing subject of investigation, but appears very specific to individual scenes. For this paper, we ran a parameter sweep on all four data sets using \tau\in[100,1000,10000,100000] , \epsilon\in[0.05,0.06,0.07,0.08,0.09,0.1] , and NN\in[5,10,...,45,50] . The number of atoms used was a multiple, 0.5,1,2,\text{or }4 , of the number of ground truth labels which vary for each data set. When we express best case performance, we mean from the results returned by this sweep. The following table indicates best case performance accuracy under a few different sets of hyperparameters for our four trial data sets. Data set Accuracy \boldsymbol{\tau} \boldsymbol{\epsilon} Atoms NN Salinas A 0.89 1000 0.1 24 25 Salinas A 0.86 10000 0.05 30 20 Pavia Centre 0.84 1000 0.07 27 15 Pavia Centre 0.82 100 0.07 27 5 Pavia U 0.63 10000 0.07 18 5 Pavia U 0.58 100000 0.1 36 5 Indian Pines 0.34 1000 0.06 32 5 Indian Pines 0.34 100000 0.06 48 5 Table 1 : Accuracy test results for various data sets. Often, when presented with raw HSI data, it is unclear what the number of ground truth classes should be. This motivates the purity metric of evaluating a labeling scheme. In this regime, we do not presuppose the number of ground truth classes, and instead cluster around c clusters. For each of the c clusters, we find the most common ground truth label within the cluster. We then compute the ratio of number of pixels sharing this consensus label to the total number of pixels within the cluster. The average of these ratios is the purity score. It captures how effectively each cluster parses ground truth classes, even if the number of clusters exceeds the number of ground truth classes. While the purity score is still presented as a value between 0 and 1 , there is nuance required when comparing it to accuracy. For instance, the purity score is subject to the number of clusters, c , with purity approaching 1 as c\to\infty . The following table presents purity test results from our four data sets, highlighting the advantages of adding a few additional clusters, rather than the best case outcome which is overly appealing for large c . In particular, we note the addition of even one additional cluster to the Salinas A data set results in an improvement from an accuracy of 89\% to a purity of 92\% albeit with different hyperparameters. Similar results for the improvement of purity over accuracy with one additional cluster point, in our opinion, to the existence of latent material classes within these data sets. In table 2, c is the number of clusters. For reference the number of ground truth classes for Salinas A, Pavia Centre, Pavia University, and Indian Pines are 6, 9, 9, and 16 respectively. Data set Purity \boldsymbol{\tau} \boldsymbol{\epsilon} Atoms NN c Salinas A 0.92 1000 0.1 60 45 7 Pavia Centre 0.91 10000 0.09 24 10 10 Pavia U 0.72 10000 0.11 36 20 10 Indian Pines 0.47 1000 0.1 64 40 17 Salinas A 0.93 1000 0.1 30 45 35 Pavia Centre 0.91 10000 0.09 24 10 18 Pavia U 0.75 10000 0.11 36 10 13 Indian Pines 0.53 1000 0.1 64 25 44 Table 2 : Purity test results for various data sets. The first four rows highlight purity results in which the number of clusters exceeds the number of ground truth labels by just one. The following four rows allow c to further exceed the number of ground truth labels. Fig. 2 : This image shows the in-painting process of a trial run of the Salinas A data set with 24 atoms, \tau=1000 , and \epsilon=0.1 achieving an accuracy before in-painting of 89\% . We note that the bottom right corner of the image accounts for the majority of the mislabeling, and that this issue is common under unsupervised labeling schemes. Much of the work done in this paper sought to improve upon the results showcased in [ 10 ] which deployed BCSC as opposed to UBCSC. In the following tables we highlight the performance difference between UBCSC and BCSC in terms of labeling accuracy. The first table showcases trials under identical hyperparameters, and the second table the overall best case performance on each data set between the two algorithms. Data set UBCSC BCSC \boldsymbol{\tau} \boldsymbol{\epsilon} Atoms Salinas A 0.89 0.68 1000 0.1 24 Pavia Centre 0.84 0.73 1000 0.07 27 Pavia U 0.63 0.40 10000 0.07 18 Indian Pines 0.34 0.30 1000 0.06 32 Table 3 : Comparison of UBCSC vs BCSC accuracy under identical hyperparameters. Data set UBCSC BCSC Salinas A 0.89 0.86 Pavia Centre 0.84 0.77 Pavia U 0.63 0.47 Indian Pines 0.34 0.32 Table 4 : Comparison of UBCSC vs BCSC accuracy under best case performance. To conclude this section, we note that one limitation with our approach its time complexity. Unlike one dimensional balanced optimal transport where we can compute a barycenter on n distributions in O(n\log(n)) time via a sorting algorithm, no such efficient solution exists for one dimensional unbalanced optimal transport. However, the prior implementation of BCSC did not employ this approach and instead used Sinkhorn’s algorithm, as does our implementation of UBCSC. It is well known that Sinkhorn’s algorithm has time complexity O(n^{2}/\epsilon^{2}) for balanced optimal transport and O(n^{2}/\epsilon) for unbalanced optimal transport [ 3 , 20 ] . Despite this, we have observed that UBCSC is slower than BCSC under similar hyperparameters. Moreover, the quadratic time complexity would render this method untenable for large data sets ( n>10000 ). For our experiments, we utilized a system running Windows 11 with a Ryzen 9700x CPU (8 cores, 16 threads, 3.8-5.5GHz) and 32GB of memory running single threaded in Python 3.14. It is possible to parallelize the barycenter computation on a GPU to expedite computations, but this is not something we have implemented. As an example, our best case scenario on the Salinas A data set took 226 seconds of runtime with hyperparameters: k=24,\tau=1000,\epsilon=0.1 , and 500 iterations of the learning loop. 5 CONCLUSIONS AND FUTURE WORK In this paper we demonstrated the efficacy of applying unbalanced optimal transport barycenters towards creating a learned representation of HSI data. Unbalanced Wasserstein dictionary learning meaningfully reduced the dimensionality of the problem which, in conjunction with standard clustering techniques, provided an effective unsupervised labeling scheme. We have largely improved on the prior work of [ 10 ] , but have done so in a way that is both more faithful to the underlying HSI data and more effective. For future work, we seek to incorporate additional spatial data in the labeling process, either when generating the weights, or as a post-processing step. One risk of incorporating additional spatial information is overfitting as certain data sets feature spatial separated areas of similar material type. Regardless, it is an unused component of the data which could offer further benefit if incorporated.