NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Oracle-MNIST: a Realistic Image Dataset for Benchmarking Machine Learning Algorithms

Mei Wang, Weihong Deng · OpenReview

Abstract

We introduce the Oracle-MNIST dataset, comprising of 28x28 grayscale images of 30,222 ancient characters from 10 categories, for benchmarking pattern classification, with particular challenges on image noise and distortion. The training set totally consists of 27,222 images, and the test set contains 300 images per class. Oracle-MNIST shares the same data format with the original MNIST dataset, allowing for direct compatibility with all existing classifiers and systems, but it constitutes a more challenging classification task than MNIST. The images of ancient characters suffer from 1) extremely serious and unique noises caused by three-thousand years of burial and aging and 2) dramatically variant writing styles by ancient Chinese, which all make them realistic for machine learning research.

Introduction

For decades, the MNIST dataset of handwritten digits has served as the standard benchmark for computer vision. However, modern Convolutional Neural Networks (CNNs) have largely "solved" MNIST, frequently achieving accuracies exceeding 99%. While datasets like Fashion-MNIST and EMNIST were introduced to increase difficulty, they often lack the messy, unpredictable nature of real-world data. Oracle-MNIST addresses this by providing a benchmark that is easy to integrate—maintaining the 28x28 grayscale format and 10-class structure—but significantly harder to master due to the inherent noise and stylistic diversity of 3,000-year-old archaeological artifacts.

The Oracle-MNIST Dataset

The dataset is derived from the YinQiWenYuan platform, which contains scans of characters engraved on tortoise shells and animal bones from the Shang Dynasty (c. 1600–1046 B.C.). The curation process involved grayscaling raw scans, negating them to match the MNIST foreground-background convention, and resizing them to a 28x28 canvas using bi-cubic interpolation.

Evolution of Chinese characters from pictographs to modern script.

Oracle-MNIST consists of 30,222 images across 10 categories representing common concepts like "sun," "moon," and "cattle." The training set includes 27,222 images, while the test set is balanced with 300 images per class. Unlike many modern datasets, the authors intentionally avoided image enhancement techniques to preserve the "broken" strokes and environmental noise caused by three millennia of burial.

Challenges: Noise and Stylistic Variation

Oracle-MNIST introduces several unique challenges for machine learning models:

  1. Environmental Noise: Unlike synthetic noise, the "history" noise in these images—caused by geological pressure, moisture, and decay—creates complex textures and occlusions that are difficult to model.
  2. High Intra-class Variance: Ancient Chinese writing was not standardized. Scribes often had distinct styles, leading to significant visual differences for the same character.
  3. Inter-class Similarity: Certain categories are topologically similar, requiring models to learn fine-grained discriminative features.
Examples of stylistic variation and noise in Oracle-MNIST characters.

Experimental Results

Benchmarking various algorithms reveals a clear difficulty hierarchy. While traditional "shallow" models like Random Forest and KNN perform excellently on MNIST, their performance drops precipitously on Oracle-MNIST.

Algorithm MNIST Accuracy Fashion-MNIST Accuracy Oracle-MNIST Accuracy
CNN (Best) 99.3% 92.1% 93.8%
SVC (RBF Kernel) 97.3% 89.7% 75.5%
Random Forest 97.0% 87.2% 65.0%
KNN 94.4% 84.9% 62.7%

The 6.2% error rate for CNNs on Oracle-MNIST, compared to less than 1% on MNIST, underscores the dataset's utility as a more robust benchmark for modern AI.

Conclusion

Oracle-MNIST provides a realistic, challenging alternative to standard digit-based benchmarks. While it currently features 10 classes for compatibility, future work could expand the dataset to include more of the 4,500 discovered oracle characters. The dataset remains an open challenge for developing more robust de-noising and recognition algorithms capable of handling extreme degradation.

Summary updated

BibTeX
@misc{wang2022oracle,
  author = {Mei Wang and Weihong Deng},
  title = {{Oracle-MNIST: a Realistic Image Dataset for Benchmarking Machine Learning Algorithms}},
  year = {2022},
  eprint = {2205.09442},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.09442},
}
Figure