TabSOM: A tabular-to-image encoding method based on self-organizing maps
David Chushig-Muzo, María Ángeles Rodríguez de Cara, Eva Milara, Francisco J. Lara-Abelenda, Luis Zhinin-Vera, Diego H. Peluffo-Ordóñez
Rey Juan Carlos University · Universidad Francisco de Vitoria · University of Castilla-La Mancha · Yachay Tech University
cs.CV, cs.LG
Submitted: 2026-08-13
Updated: 2026-08-14
License: http://creativecommons.org/licenses/by-sa/4.0/
Importance score: 65/100
The gist: TabSOM: A tabular-to-image encoding method based on self-organizing maps Abstract Tabular-to-image methods have emerged as novel approaches to leverage the high predictive performance of
Terminology
Summary
TabSOM: A tabular-to-image encoding method based on self-organizing maps
Abstract
Tabular-to-image methods have emerged as novel approaches to leverage the high predictive performance of convolutional neural networks and vision transformers. They convert tabular data into image representations, mapping each feature at a fixed pixel location derived from a dimensionality-reduction method (e.g., t-SNE, UMAP, PCA). However, they encode only the marginal value of each feature and discard information about feature relationships. We propose TabSOM, a tabular-to-image encoding built on the Self-Organizing Map (SOM), which provides: (i) a spatial layout in which every input feature occupies a fixed canvas position derived from its component plane via collision-free Hungarian assignment; and (ii) a graph that captures pairwise feature relationships derived from the SOM component planes. The resulting image stacks two multi-scale node channels: one encodes feature values at fixed scales, while the other encodes pairwise feature interactions as spatial connections between related features. Two SOM-derived interpretability approaches are introduced: a prototype-inspired partial dependence plot and a class-separation importance score. Benchmarked against twelve existing tabular-to-image methods across public binary-classification datasets, TabSOM ranks first or second on every dataset and achieves the lowest variance of any method evaluated. Interpretability obtained with TabSOM was validated against Random Forest, XGBoost, and SHAP, the class-separation score shows reasonable agreement with established baselines on the top-ranked features while capturing complementary structural information from input data. These results demonstrate that TabSOM provides an effective and interpretable approach for applying deep learning architectures to tabular data, bridging the performance–interpretability gap in this domain.
Introduction
Tabular data are among the most widely used data formats for representing structured information. It is characterized by a table-like format, with rows corresponding to samples and columns to features. While Deep Learning (DL) models, such as Convolutional Neural Networks (CNNs) and Vision Transformers (ViTs), have achieved remarkable results on data characterized by high spatial or temporal correlations (e.g., images and audio), tabular data generally exhibit weak interdependencies among features. As a result, DL architectures often show reduced effectiveness on predictive tasks involving tabular data. This has fostered recent research into encoding methods, which convert tabular data into images to leverage the predictive performance of CNNs and pretrained ViTs.
Several tabular-to-image methods have been proposed in the literature, ranging from parametric to non-parametric approaches. Most of these methods, such as DeepInsight, TINTO, REFINED, project features into two-dimensional through dimensionality reduction methods. They generate images in which spatial proximity reflects feature similarity, with neighboring pixels representing features with some similarity. Tabular-to-image methods have demonstrated competitive performance in several domains such as healthcare, indoor localization, and the internet of things among others.
The performance of tabular-to-image encoding methods directly depends on how features are spatially arranged and how their values are encoded. Existing methods have addressed this mainly through dimensionality reduction methods, including Principal Component Analysis (PCA), kernel PCA, t-distributed Stochastic Neighbor Embedding (t-SNE) and Uniform Manifold Approximation and Projection (UMAP). These project the feature space into two-dimensional space, assigning each feature to its nearest pixel on the image canvas. Although they produce effective spatial layouts, the embedding is used solely to determine feature locations. As a result, each feature occupies a fixed position derived from the feature distribution, without explicitly encoding relationships among feature values.
The Self-Organizing Map (SOM), an artificial neural network based on unsupervised and competitive learning, performs a topology-preserving mapping from the input space to a two-dimensional grid of nodes. The topology-preserving property enables that similar inputs are mapped to neighbor nodes on the grid. Then, local relationships in the input space are reflected in spatial proximity on the grid. As a result, SOM has been extensively used for visualization, clustering, and pattern recognition in different domains such as signal processing, healthcare among others. Although SOM has shown excellent results in unsupervised tasks, its application within tabular-to-image methods has been partially explored. Unlike other dimensionality reduction techniques, the SOM preserves an interpretable structure. Each node is associated with a prototype, the grid of prototypes provides a density-weighted summary of the joint feature distribution, and the component planes capture how each feature varies across the map. Although tabular-to-image encoding methods have shown promising predictive performance, their interpretability has received limited attention. The graph structure of the SOM captures the topology of the data while providing interpretability.
In this paper, we propose a tabular-to-image encoding method named TabSOM, which includes pairwise feature interactions as part of the image. We train a SOM on the feature space and extract, for each feature, its component plane, i.e., the spatial distribution of that feature’s values across the trained SOM grid. We derive a canvas position (named anchor) for each feature from its component plane, and then optimize anchor collisions via a Hungarian assignment to grid cells. The SOM’s prototype grid serves as a density-weighted, topologically organized sample of the joint feature distribution, and the CNN’s predictions on those prototypes define a spatial prediction map over the grid. One of the main advantages of TabSOM over other tabular-to-image methods is that the SOM is not used solely to fit the layout but also provides two interpretability methods derived from the grid: (i) global feature ranking; and (ii) prototype-inspired partial dependence curves.
The main contributions of this paper are the following:
-
A novel tabular-to-image encoding method in which feature placement is derived from SOM component planes via anchor estimation and collision-free (Hungarian) assignment.
-
A relational channel that renders pairwise feature interactions derived from the SOM prototype geometry that determines placement.
-
A multi-scale rendering scheme in which the same feature layout is rendered at multiple Gaussian bandwidths as aligned channels, providing a CNN with both precise localization and regional coherence without requiring a single bandwidth choice.
-
An SOM-based interpretability framework that leverages the learned grid structure to provide two complementary explanations: (i) global feature ranking; and (ii) prototype-inspired partial dependence curves.
-
Feature maps that allow the encoding’s class-separability and per-feature spatial assignment to be inspected independently of any downstream classifier.
Related Work
A range of tabular-to-image methods have been proposed in the literature, which are categorized into two main categories: non-parametric and parametric methods.
Non-parametric methods use heuristic algorithms to map features into a predefined image-grid representation without explicitly optimizing the spatial arrangement of features. Representative approaches include the following. BarGraph encodes each tabular sample as a vertical bar chart, where each feature is assigned to a fixed column and the bar height corresponds to the normalized feature value. Binary Image Encoding (BIE) and correlated BIE convert each numerical value to binary strings, then stack these bit-rows to form a two-dimensional matrix where 0 and 1 denote dark and light pixels, respectively. SuperTML encodes feature values as text on an image, using CNNs as character/word-level feature extractors. Tab2Visual encodes each feature as a vertical bar whose width is proportional to the normalized feature value, arranged in rows and columns of bars.
Parametric methods perform the spatial arrangement of features through an optimization-based preprocessing stage. Linear and nonlinear dimensionality reduction techniques (such as PCA, t-SNE, and UMAP) project features from the input space into a low-dimensional coordinate space, with the resulting coordinates defining the feature layout from which the image is built. Among the most popular methods, we find DeepInsight and REFINED, which use t-SNE, kernel PCA and Multidimensional Scaling to obtain a 2D position for each feature, and then map feature values to pixel intensities. TINTO uses PCA and t-SNE to determine feature locations and the resulting coordinates are then transposed, scaled, and rounded to integer values. It incorporates a blurring mechanism to produce smoother image representations, thereby enhancing compatibility with convolutional filters. Fotomics applies the Fourier Transform independently to each feature column and represents the resulting complex coefficients through their real and imaginary components as coordinates in a two-dimensional Cartesian plane. FC-Viz aggregates highly correlated features into clusters and evaluates the relationships between representative features from each cluster. Ant colony optimization determines the spatial organization of the features, while dimensionality reduction methods are employed to compute pixel intensities. Other methods in this category are IGTD and LM-IGTD. They perform a feature-to-pixel assignment as a distance-preservation optimization problem, minimizing the difference feature similarities and distances between samples. LM-IGTD extends IGTD to handle low-dimensional and mixed-type data through an unsupervised stochastic noise generation.
Methods
TabSOM consists of five stages: (1) SOM training and component-plane extraction, (2) feature anchor estimation, (3) collision-free spatial placement, (4) feature relationship graph construction, and (5) multi-channel image rendering.
Self-organizing map training: Let X ∈ RN×F be a tabular dataset with N samples and F features, and let y ∈ 0, 1 N denote the corresponding vector labels. Each feature is first scaled using min-max or z-score normalization. A rectangular SOM with H × W nodes is trained on the normalized data using the standard online SOM update rule. Each node (r, c) has associated a prototype vector wr,c ∈ RF, initialized by sampling samples from the training data. At each training step t, a sample x is drawn at random, and its best matching unit (BMU) is identified as b = arg min∥wr,c − x∥2, and every node’s prototype is updated according to the rule: wr,c ← wr,c + η(t) hσ(t) (r, c, b) (x − wr,c), where the learning rate η(t) and neighborhood radius σ(t) decay exponentially from initial values η0, σ0 to final values η1, σ1 over the course of training, and hσ (r, c, b) = exp(−((r−rb)2+(c−cb)2)/(2σ2)) is a Gaussian neighborhood function over grid coordinates. The grid size H × W is chosen such that the number of cells K = H · W is at least F, ensuring sufficient placement capacity for features.
Component planes and feature anchors: After training, the j-th component plane Φj ∈ RH×W is defined as the j-th coordinate of every node’s prototype vector, Φj (r, c) = [wr,c]j, a smooth spatial field over the grid whose value at (r, c) indicates how high feature j tends to be among samples mapped near that node. Because the SOM update rule pulls neighboring nodes toward similar prototypes, Φj varies gradually across the grid rather than at random. Nodes that are close together on the map represent similar combinations of feature values, then Φj exhibits a coherent region of high intensity rather than several disconnected peaks. This topology preservation is what allows a single scalar feature to be associated with a location on the grid in the first place, rather than only with a value at each node independently. Each feature j is first assigned an anchor position (aj ∈ [0, 1]2), representing its preferred location on the image canvas before collision resolution. Two methods are used: Centroid anchor (the intensity-weighted center of mass of the optionally sharpened component plane) and Mode anchor (the location of the plane’s maximum, optionally refined to sub-pixel precision via parabolic interpolation). In practice, the centroid anchor is preferred when component planes are broad and overlapping (typical of low-to-moderate F), while the mode anchor is preferred when F is large and many planes compete for similar grid regions.
Collision-free feature placement: Anchors computed may coincide or be placed closely, which would cause multiple features to overlap on the rendered image canvas. To solve this, we apply a discrete optimal-assignment step. Let g1,..., gK denote the centers of the K = H × W canvas cells (in normalized [0, 1]2 coordinates). The cost of placing feature j in cell c is Cjc = α ∥gc − aj∥ − β Φ̃j (gc), where the first term penalizes displacement from the feature’s anchor and the second (optional, β ≥ 0) rewards placing the feature where its own component plane is locally strong. The final placement σ: 1,..., F → 1,..., K is obtained by solving the linear assignment problem σ∗ = arg minσ ΣFj=1 Cj,σ(j) via the Hungarian algorithm, guaranteeing that no two features share a cell (zero overlap) while minimizing total displacement from the SOM-derived anchors.
Feature relationship graph: To capture pairwise feature interactions, we construct a feature relationship graph directly from the component planes. Each component plane Φj is flattened to a vector in RHW, and the relationship weight between features i and j is computed as either their Pearson correlation or cosine similarity across the flattened planes: Wij = corr(vec(Φi), vec(Φj)) or Wij = vec(Φi)⊤ vec(Φj) / (∥vec(Φi)∥ ∥vec(Φj)∥). Negative weights are clipped to zero (retaining only positive co-variation), and the diagonal is set to zero. The edge set E is obtained by thresholding: E = (i, j): Wij ≥ τ for a threshold τ (default 0.5–0.6). Because W is derived from the same prototype geometry that determines feature placement, features connected by an edge are typically placed near each other on the canvas.
Multi-channel image rendering: Given the placement pj Fj=1 ⊂ [0, 1]2 (canvas positions) and the edge set E with weights Wij (i,j)∈E, a tabular sample x ∈ RF is rendered into an image I ∈ RHimg×Wimg×C with C channels. We selected C = 3, with two first node channels and a relational edge channel. For each of S Gaussian bandwidths σ1 < σ2 < · · · < σS (default S = 3, e.g. σ ∈ 0.05, 0.10, 0.18, sharp to smooth), one channel is rendered as Is (u, v) = ΣFj=1 xj · exp(−∥(u, v) − pj∥2 / (2σs2)), s = 1,..., S, where (u, v) ranges over pixel centers in [0, 1]2. Each channel is the same spatial layout rendered at a different bandwidth: the sharp channel localizes each feature precisely (supporting fine-grained discrimination), while the smooth channel provides regional coherence over a neighborhood the size of a convolutional kernel’s receptive field (supporting the local-pattern assumptions of CNNs). Because all S channels share the same feature positions, they are spatially aligned, allowing a CNN to jointly exploit multiple scales — analogous to a feature pyramid. We use S = 2 (σ ∈ 0.05, 0.08), reserving the third channel for the relational edge channel. For each edge (i, j) ∈ E, define the segment field as the Gaussian distance from (u, v) to the line segment connecting pi and pj: segij (u, v) = exp(−d((u, v), pi pj)2 / (2σe2)), where d(·, ·) is the perpendicular distance to the segment (clamped to the segment’s endpoints) and σe is a fixed edge bandwidth. The edge channel is then Iedge (u, v) = Σ(i,j)∈E Wij · max(xi, 0) · max(xj, 0)·gij (x)·segij (u, v), where √(xi xj) is the interaction intensity …
Improvements for AI systems
Improvements to AI systems based on TabSOM:
-
Add relational feature encoding to tabular deep learning models. Most current tabular DL approaches (e.g., FT-Transformer, TabNet) treat features as independent or rely on attention mechanisms that do not explicitly encode pairwise feature interactions. TabSOM’s relational edge channel provides a principled way to inject pairwise feature co-variation into the input representation, enabling CNNs/ViTs to exploit feature interactions that are otherwise invisible to the model. An improved system could automatically learn which feature pairs matter for a given task, rather than relying on hand-crafted interaction terms.
-
Replace stochastic dimensionality-reduction layouts with deterministic, topology-preserving placements. Existing tabular-to-image methods (t-SNE, UMAP, PCA-based) produce unstable layouts across random seeds, causing high variance in downstream model performance. TabSOM’s SOM-based placement with Hungarian assignment yields a fixed, reproducible canvas after a single fit. An improved system could guarantee stable image representations across runs, reducing variance in model predictions and making results more reproducible for clinical or financial applications.
-
Enable multi-scale feature rendering without manual bandwidth tuning. TabSOM stacks multiple Gaussian bandwidths as aligned channels, allowing a CNN to jointly use sharp (fine-grained) and smooth (regional) information. An improved system could automatically adapt the number and range of bandwidths based on feature density and dataset size, eliminating the need for users to choose a single smoothing parameter and improving performance on datasets with heterogeneous feature distributions.
-
Provide built-in, model-agnostic interpretability from the encoding itself. TabSOM’s class-separation importance score and prototype-based partial dependence plots derive explanations directly from the SOM grid, independent of the downstream classifier. An improved AI system could offer interpretability without requiring post-hoc tools like SHAP or LIME, which are computationally expensive and can be unstable. This is especially valuable in high-stakes domains (healthcare, finance) where model transparency is mandatory.
-
Generate data-consistent partial dependence curves. Unlike standard PDPs that assume feature independence and sample from synthetic Cartesian grids, TabSOM’s prototype-based PDP uses only regions of feature space actually populated by the SOM’s prototypes, weighted by hit counts. An improved system could produce more trustworthy dependence analyses that avoid extrapolating to unrealistic feature combinations, reducing misleading insights in scientific or medical decision-making.
-
Create a unified pipeline for feature placement, interaction discovery, and explanation. TabSOM integrates layout, relational graph, and interpretability into a single SOM-based framework. An improved AI system could offer an end-to-end solution where the same learned representation serves both prediction and explanation, eliminating the need to maintain separate models for classification and interpretability, and reducing deployment complexity.
-
Improve performance on small and low-dimensional tabular datasets. TabSOM’s structured encoding significantly outperforms embedding-based methods on datasets with few features (e.g., 8-feature Pima dataset, 0.30 AUCROC improvement over TINTO). An improved system could leverage this approach for small-sample medical or sensor datasets where deep learning typically underperforms, enabling robust DL application in data-scarce domains.
-
Support class-conditional feature importance for binary and multi-class problems. TabSOM’s class-separation score quantifies how differently a feature’s component plane is activated across classes. An improved system could extend this to multi-class settings and provide per-class feature rankings, helping users understand which features drive each class decision—useful for fraud detection (distinguishing fraud types) or medical diagnosis (differentiating disease subtypes).
-
Enable visual inspection of feature assignments and class separability. TabSOM’s feature maps allow users to see where each feature is placed and how well classes separate on the SOM grid. An improved AI system could provide interactive visualizations that let practitioners verify that the encoding preserves meaningful structure before training a classifier, improving trust and debugging capability.
-
Reduce computational overhead compared to stochastic embedding methods. TabSOM requires only a single SOM fit (unsupervised) plus a Hungarian assignment, which is deterministic and fast. An improved system could avoid repeated t-SNE/UMAP runs across cross-validation folds, cutting preprocessing time and enabling real-time or near-real-time tabular-to-image conversion for streaming or online learning applications.
Abstract
Tabular-to-image methods have emerged as novel approaches to leverage the high predictive performance of convolutional neural networks and vision transformers. They convert tabular data into image representations, mapping each feature at a fixed pixel location derived from a dimensionality-reduction method (e.g., t-SNE, UMAP, PCA). However, they encode only the marginal value of each feature and discard information about feature relationships. We propose TabSOM, a tabular-to-image encoding built on the Self-Organizing Map (SOM), which provides: (i) a spatial layout in which every input feature occupies a fixed canvas position derived from its component plane via collision-free Hungarian assignment; and (ii) a graph that captures pairwise feature relationships derived from the SOM component planes. The resulting image stacks two multi-scale node channels: one encodes feature values at fixed scales, while the other encodes pairwise feature interactions as spatial connections between related features. Two SOM-derived interpretability approaches are introduced: a prototype-inspired partial dependence plot and a class--separation importance score. Benchmarked against twelve existing tabular-to-image methods across public binary-classification datasets, TabSOM ranks first or second on every dataset and achieves the lowest variance of any method evaluated. Interpretability obtained with TabSOM was validated against Random Forest, XGBoost, and SHAP, the class-separation score shows reasonable agreement with established baselines on the top-ranked features while capturing complementary structural information from input data. These results demonstrate that TabSOM provides an effective and interpretable approach for applying deep learning architectures to tabular data, bridging the performance--interpretability gap in this domain.
Related papers
- Loss Knows Best: Detecting Annotation Errors in Videos via Loss Trajectories
- AnchorWeave: World-Consistent Video Generation with Retrieved Local Spatial Memories
- Benchmarking the Robustness of Foundation Models for Mammography under Domain Shift
- MambaX-Net: Dual-Input Mamba-Enhanced Cross-Attention Network for Longitudinal MRI Segmentation
- TeleOCR: Navigating Document Parsing Across Digital and Camera-Captured Documents
- A Survey on Efficient Vision-Language-Action Models