Skip to main content
QUICK REVIEW

[Paper Review] SuSi: Supervised Self-Organizing Maps for Regression and Classification in Python

Felix M. Riese, Sina Keller|arXiv (Cornell University)|Mar 26, 2019
Neural Networks and ApplicationsComputer Science16 citations
TL;DR

This paper introduces SuSi, a free, open-source Python package implementing supervised self-organizing maps (SOMs) for regression and classification tasks. It combines unsupervised SOM training with supervised learning to improve generalization, especially on small datasets, and demonstrates robust performance with minimal train-test performance gaps across diverse geospatial datasets.

ABSTRACT

In many research fields, the sizes of the existing datasets vary widely. Hence, there is a need for machine learning techniques which are well-suited for these different datasets. One possible technique is the self-organizing map (SOM), a type of artificial neural network which is, so far, weakly represented in the field of machine learning. The SOM's unique characteristic is the neighborhood relationship of the output neurons. This relationship improves the ability of generalization on small datasets. SOMs are mostly applied in unsupervised learning and few studies focus on using SOMs as supervised learning approach. Furthermore, no appropriate SOM package is available with respect to machine learning standards and in the widely used programming language Python. In this paper, we introduce the freely available Supervised Self-organizing maps (SuSi) Python package which performs supervised regression and classification. The implementation of SuSi is described with respect to the underlying mathematics. Then, we present first evaluations of the SOM for regression and classification datasets from two different domains of geospatial image analysis. Despite the early stage of its development, the SuSi framework performs well and is characterized by only small performance differences between the training and the test datasets. A comparison of the SuSi framework with existing Python and R packages demonstrates the importance of the SuSi framework. In future work, the SuSi framework will be extended, optimized and upgraded e.g. with tools to better understand and visualize the input data as well as the handling of missing and incomplete data.

Motivation & Objective

  • Address the lack of standardized, well-documented, and actively maintained Python packages for self-organizing maps (SOMs) in machine learning.
  • Provide a unified framework for both unsupervised and supervised SOM applications in regression and classification.
  • Enable robust machine learning performance on small datasets by leveraging the neighborhood structure of SOMs to reduce overfitting.
  • Support practical geospatial applications, particularly in hyperspectral image analysis, by offering interpretable 2D visualizations of data relationships.
  • Establish a foundation for future extensions, including handling missing data and enhanced interpretability tools.

Proposed method

  • Implement a two-stage process: first, an unsupervised SOM trains on input data using competitive learning and neighborhood-based weight updates.
  • Introduce a supervised learning extension where output neurons are trained to predict target variables (regression or classification) using backpropagation-like updates.
  • Apply a neighborhood function (e.g., Gaussian kernel) to propagate weight updates across neighboring neurons, preserving topological structure.
  • Use a consistent variable naming convention and object-oriented design to ensure code clarity and compatibility with scikit-learn standards.
  • Integrate GPU support in the TensorFlow-based variant and ensure compatibility with Python 3 and PyPI for easy installation.
  • Visualize results via 2D SOM grids to interpret data clustering and class distribution, enhancing model interpretability.

Experimental results

Research questions

  • RQ1Can a supervised SOM framework be effectively implemented in Python with scikit-learn-like usability and maintainability?
  • RQ2How does the performance of SuSi compare to established machine learning models (e.g., random forests) in regression and classification tasks on small and large datasets?
  • RQ3To what extent does the neighborhood structure of SOMs reduce overfitting in supervised learning, especially on small datasets?
  • RQ4How well does the SuSi framework support interpretability through 2D visualization of complex data relationships in geospatial applications?
  • RQ5What are the key advantages of SuSi over existing Python and R SOM packages in terms of features, documentation, and extensibility?

Key findings

  • The SuSi framework achieves stable performance with minimal difference between training and test set metrics, indicating low overfitting, even on small datasets with only 679 samples.
  • For the Salinas Valley hyperspectral classification task, the SuSi classification SOM achieved comparable performance to a random forest classifier, with significantly less overfitting on the training set.
  • The 2D SOM grid effectively visualizes data structure, with neurons assigned to the same class clustering together due to neighborhood constraints during training.
  • The SuSi package is the first Python implementation to offer both supervised regression and classification with a clean, scikit-learn-style API, filling a critical gap in the ecosystem.
  • Compared to existing packages, SuSi uniquely supports supervised learning, comprehensive documentation, and easy installation via PyPI, while maintaining active development.
  • The framework's ability to use training set performance as an out-of-bag estimate suggests potential for improved training efficiency, especially when data splitting is impractical.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.