Recognizing Cuneiform Signs Using Graph Based Methods

Nils M. Kriege, Matthias Fey, Denis Fisseler, Petra Mutzel, Frank Weichert

Abstract

The cuneiform script constitutes one of the earliest systems of writing and is realized by wedge-shaped marks on clay tablets. A tremendous number of cuneiform tablets have already been discovered, but their translation remains a painstaking, manual process for human experts. This paper introduces two graph-based machine learning methods—a tailored Graph Edit Distance (GED) heuristic and a Graph Convolutional Network (SplineCNN)—to automate the recognition of 3D-scanned cuneiform signs, achieving over 93% accuracy on a newly introduced dataset.

Introduction

Cuneiform is one of the world's oldest writing systems, consisting of tetrahedron-shaped wedge impressions on clay tablets. While over 500,000 fragments have been discovered and are increasingly being digitized via high-resolution 3D scanning, reading them remains a manual, annotation-heavy task for philologists.

Automated recognition is incredibly challenging. Depending on the tablet's preservation, individual wedges can be hard to identify based purely on geometry. Furthermore, many signs are visually identical in their constituent wedges and only differ in their relative spatial arrangements. Because annotated 3D cuneiform data is scarce and expensive to produce, any automated classifier must be able to learn from a very small number of examples and generalize well to unseen data.

Methodology

The authors model each cuneiform wedge as a small graph clique of four vertices: depth, tail, right, and left. To capture the crucial spatial relationships between different wedges in the same sign, they introduce arrangement edges connecting the depth vertices of different wedges. This graph-based abstraction allows the system to focus on the structural and spatial properties of the signs rather than raw pixel or voxel data.

Cuneiform tablet signs (a) and their corresponding graph representation (b).

To classify these graphs, the paper proposes two complementary approaches:

Graph Edit Distance (GED) with Heuristics

The authors define a custom cost function for substituting, inserting, or deleting vertices and edges. Because computing exact GED is NP-hard and practically too slow for large datasets, they introduce two cubic-time heuristics based on bipartite matching. The most successful heuristic, APX2, computes an optimal assignment of wedges and then factors in the cost of the arrangement edges. This is utilized within a $k$-Nearest Neighbors ($k$-NN) classifier.

Geometric Deep Learning (SplineCNN)

As a faster-inference alternative, the researchers apply SplineCNN, a graph convolutional network that uses continuous B-spline kernels. This architecture learns directly from the spatial relations (edge attributes) of the irregular graph data. To combat the small dataset size, the authors rely heavily on data augmentation, using random affine transformations like scaling, rotation, and translation to improve model robustness.

Architecture of the SplineCNN used for sign classification, showing the progression from input maps to the final output neurons.

Datasets

The study introduces a newly created, self-annotated dataset of 267 cuneiform signs spanning 30 classes of Hittite syllabic signs. The data was extracted from 9 tablets written by 4 different modern scholars of Hittitology, ensuring a mix of individual handwriting styles. The dataset contains 5,680 vertices and 23,922 edges in total and has been made publicly available to encourage further research in digital humanities.

Key Insights

  • Spatial Context is Critical: Purely geometric matching of individual wedges fails for certain signs (like 'li' vs. 'tu') that use identical wedges but arrange them differently. The introduction of "arrangement edges" in the graph model was the critical key to distinguishing these signs.
  • Heuristics vs. Exact Solvers: The APX2 heuristic achieved nearly identical accuracy to the exact GED computation while being significantly faster, proving that NP-hard exact problems can be bypassed in this domain without performance loss.
  • Augmentation for Small Data: Deep learning models like SplineCNN require data augmentation to outperform traditional graph matching on small datasets. Random affine transformations allowed the CNN to learn invariant geometric features effectively.

Results

The augmented SplineCNN achieved the highest mean accuracy at 93.54%. The exact GED method followed closely at 93.24%, and the APX2 heuristic achieved 92.87%. Without augmentation, the SplineCNN's accuracy dropped to 87.37%.

In terms of speed, exact GED is practically unusable for large-scale tasks, taking approximately 27 minutes to compute rankings for the test set. In contrast, the APX2 heuristic reduces this to just 53.7 milliseconds. SplineCNN is even faster at inference, taking only 14 milliseconds to classify all signs.

Conclusion and Future Work

While the results are promising, the small size of the dataset makes the SplineCNN sensitive to specific training/test splits. Future work will focus on investigating model performance in the presence of 3D scanning errors and extending the dataset to include signs that require semantic context for disambiguation. Additionally, the authors suggest incorporating recurrent modules (like RNNs) to recognize sequences of signs rather than isolated characters.

Summary updated

BibTeX
@inproceedings{kriege2018recognizing,
  author = {Nils M. Kriege and Matthias Fey and Denis Fisseler and Petra Mutzel and Frank Weichert},
  title = {{Recognizing Cuneiform Signs Using Graph Based Methods}},
  booktitle = {COST@SDM},
  year = {2018},
  url = {https://openreview.net/forum?id=8Ye2Dj2qjRD},
}
Figure