Deep Ordinal Regression Based on Data Relationship for Small Datasets

Yanzhu Liu, Adams Wai-Kin Kong, Chi Keong Goh

Introduction

Ordinal regression is a fundamental task in machine learning where the goal is to predict discrete labels that possess a natural, inherent ordering. Examples include disease staging in medical imaging, age estimation, or dating historical photographs. Unlike standard classification, the relative distance between labels matters; unlike standard regression, the targets are discrete ranks.

Deep Neural Networks (DNNs) have revolutionized computer vision but typically require massive amounts of labeled data. In many ordinal regression domains, data is scarce and expensive to label. Furthermore, standard pointwise approaches (evaluating one image at a time) often fail to capture the structural relationships between ranks. This paper introduces CNNOR, a framework designed to overcome the "small data trap" by leveraging the relationships between data points through a triplet-based architecture.

Methodology: The CNNOR Framework

The proposed CNNOR (Convolutional Neural Network for Ordinal Regression) framework operates in two distinct stages: a global pre-training phase followed by local rank-specific refinement.

The dual-stage architecture of CNNOR: (a) shows the CNNreg model for global ordinal mapping, and (b) illustrates the CNNk model for triplet-based classification.

Stage 1: Global Ranking with CNNreg

The first stage involves training a network, CNNreg, to map input images onto a one-dimensional real line. The objective is to learn a global flow where images of lower ranks are positioned before images of higher ranks.

To achieve this, the authors employ a specialized Ordinal Loss function. This loss enforces a margin $g$ between the mapped values of adjacent ranks, ensuring that the network learns the ordinal structure rather than just treating ranks as independent classes.

Visualization of the Ordinal Loss mechanism, where images are mapped to a 1D line with specific margins $g$ to maintain rank order.

Stage 2: Local Refinement with CNNk

In the second stage, the problem is decomposed into $m$ binary classification tasks for a dataset with $m$ ranks. For each rank $k$, a specific network CNNk is trained. This network is fine-tuned to determine if a test image $x_t$ is correctly situated between a reference image from rank $k-1$ and one from rank $k+1$.

Triplet Strategy and Data Augmentation

A key innovation of CNNOR is the use of triplets $(x_{k-1}, x_t, x_{k+1})$. By considering combinations of images rather than individual points, the framework effectively expands the training set. For a dataset with $n$ samples, the number of possible triplets grows at $O(n^3)$. This combinatorial explosion provides a massive, implicit form of data augmentation, allowing deep models to generalize effectively even when the base dataset contains only a few hundred images.

Experimental Evaluation

The authors evaluated CNNOR on two challenging benchmarks characterized by small sample sizes:

  1. Historical Color Image Dataset: This dataset contains 1,075 images spanning five decades (1930s–1970s). The task is to predict the decade, where visual differences are often subtle and evolve gradually.
  2. MSRA-MM1.0 Image Retrieval: This benchmark includes five subsets (Baby, Beach, Cat, Rose, Tiger), each with fewer than 1,100 images. Images are ranked by their relevance to a query.

Key Results

  • State-of-the-Art Performance: On the Historical Image dataset, CNNOR achieved an accuracy of 41.56%, surpassing standard CNN classification (41.07%) and previous deep ordinal methods (38.65%).
  • Robustness in Retrieval: In the MSRA-MM1.0 subsets, CNNOR consistently outperformed baseline deep learning models. For the "Tiger" subset, it reached 60.00% accuracy, a significant improvement over the 53.33% achieved by standard CNNs.
  • Closing the Gap with Hand-Crafted Features: Historically, expert-designed hand-crafted features performed better than deep learning on these small datasets. CNNOR demonstrates that by respecting the internal relationships of the data, deep learning can match or exceed these traditional methods.

Conclusion

CNNOR addresses the limitations of deep learning on small ordinal datasets by shifting the focus from individual data points to the relationships between them. By utilizing a two-stage training process and triplet-based data augmentation, the framework achieves superior performance on benchmarks where data scarcity typically hinders deep models. While the approach introduces some computational overhead due to the triplet processing, it provides a robust path forward for applying deep learning to specialized, small-scale ordinal regression tasks.

Summary updated

BibTeX
@inproceedings{liu2017deep,
  author = {Yanzhu Liu and Adams Wai-Kin Kong and Chi Keong Goh},
  title = {{Deep Ordinal Regression Based on Data Relationship for Small Datasets}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.24963/ijcai.2017/330},
}
Figure