Haphazard Inputs as Images in Online Learning
Rohit Agarwal, Aryan Dessai, Arif Ahmed Sekh, Krishna Agarwal, Alexander Horsch, Dilip K. Prasad
TL;DR
This work tackles online learning with haphazard inputs—data arriving with varying feature spaces and missing or obsolete features—by transforming each instance's observed features into a fixed-dimension, color-coded bar-plot image $I^t\in\mathbb{R}^{3\times224\times224}$. The method HI2 converts $X^t$ to $I^t$ on the fly and applies pre-trained vision models (e.g., ResNet-34, ViT) in an online gradient-descent loop, using streaming $Z$-score or Min-Max normalization to produce stable inputs. Across four public datasets, HI2 consistently outperforms classical and deep baselines on AUPRC, AUROC, and Balanced Accuracy, particularly as the fraction of unavailable features grows, demonstrating robustness and scalability. The approach enables a model-agnostic, image-based pathway for handling varying feature spaces in online learning, with practical implications for real-time systems and IoT-enabled domains, and a provided codebase for reproducibility.
Abstract
The field of varying feature space in online learning settings, also known as haphazard inputs, is very prominent nowadays due to its applicability in various fields. However, the current solutions to haphazard inputs are model-dependent and cannot benefit from the existing advanced deep-learning methods, which necessitate inputs of fixed dimensions. Therefore, we propose to transform the varying feature space in an online learning setting to a fixed-dimension image representation on the fly. This simple yet novel approach is model-agnostic, allowing any vision-based models to be applicable for haphazard inputs, as demonstrated using ResNet and ViT. The image representation handles the inconsistent input data seamlessly, making our proposed approach scalable and robust. We show the efficacy of our method on four publicly available datasets. The code is available at https://github.com/Rohit102497/HaphazardInputsAsImages.
