A deep learning model developed by Liyong Zhang and Lizhi Xing can simultaneously reconstruct missing strokes and classify carved characters on damaged ancient oracle bone fragments, according to a computational study published in Discover Artificial Intelligence. Implemented in Python, the Seven-spot Ladybird Optimized Attention-enriched Convolutional Neural Network (SSL-Att-CNN) achieved 98.33% classification accuracy, 98.03% precision, 98.68% recall, and a 98.35% F-measure when trained and tested on the Colored Oracle Bone Dataset. In image restoration benchmarks on the same dataset, the system reached a Peak Signal-to-Noise Ratio (PSNR) of 23.76 and a Structural Similarity Index (SSIM) of 0.9088, outperforming traditional filtering, denoising, and deep learning baselines. Oracle bone inscriptions, carved onto animal bones and tortoise shells for divination and event recording roughly 3,600 years ago, form China’s earliest mature writing system, yet centuries of erosion, ground pressure, and humidity changes have left many surviving fragments fractured, faded, and difficult to interpret.
Rejoining and deciphering broken oracle bone pieces has historically depended on specialists working manually, a process that demands substantial time and material resources. Automated computer vision tools have progressively aided digitization, retrieval, and character recognition, but automatic analysis remains hindered by scarce annotated data, intricate surface textures, wear, and visually similar glyphs. As the authors note in their review of prior literature, existing computational methods—including denoising architectures such as DeepRes, DnCNN, IDCCW, Noise2same, InvDN, and OBIFormer, generative models such as SinGAN and DiffACR, and detection or recognition networks such as YOLOv8, Faster R-CNN, OracleNet, and Prism-OBI—typically address isolated tasks like noise removal, fragment matching, or character classification. Conventional restoration methods often fail to preserve unique bone textures and fine glyph structures when damage is severe, leaving restored inscriptions visually degraded or semantically inconsistent. Zhang and Xing designed SSL-Att-CNN to unify structural restoration, texture recovery, and character recognition within a single framework.
To develop and evaluate their approach, the researchers obtained the open-source Colored Oracle Bone Dataset from Kaggle, which contains 100 original colored images of oracle bone fragments. The photographs capture both intact and deteriorated inscriptions across varied glyph arrangements, fragment shapes, background hues, lighting conditions, cracks, stains, broken edges, and missing strokes. Before expanding the dataset, the team partitioned the 100 original images into training, validation, and testing subsets using a 70:15:15 ratio to prevent data leakage. They then applied data augmentation independently within each split, using geometric transformations—rotation, translation, scaling, and shearing—alongside color and lighting adjustments, noise generation, blurring, surface degradation, and random covering and damage to simulate fractured inscriptions. This process expanded the collection to 2,000 images: 1,400 for training, 300 for validation, and 300 for testing. Every augmented sample remained in the same split as its source image, though the authors emphasize that 2,000 augmented images do not represent 2,000 distinct original artifacts.
Before training, the researchers applied a three-step preprocessing pipeline to reduce visual artifacts and standardize pixel values. First, median filtering suppressed impulse noise, speckles, and scanning distortions without blurring the sharp boundaries of carved strokes, avoiding the edge distortion typical of linear smoothing filters. Next, histogram equalization enhanced contrast across irregular bone surfaces by redistributing pixel intensities through each exposure sub-region’s Cumulative Distribution Function, calculated from a weighted Probability Density Function. This step made faded engravings, weak strokes, and worn surface textures more distinguishable from the background. Finally, min–max normalization rescaled all pixel intensities into the interval between zero and one, reducing variations caused by different scanning devices, preventing gradient divergence, and accelerating model convergence. Texture analysis of the colored fragments recorded homogeneity values from 0.84 to 0.92, spatial correlation from 0.87 to 0.95, contrast from 0.77 to 1.88, energy from 0.70 to 0.81, angular second moment from 0.69 to 0.79, and entropy from 0.65 to 0.74.
At the core of the restoration pipeline is a Generative Adversarial Network (GAN) containing a Generator and a Discriminator that integrates two specialized components: a Feature Alignment (FA) module and a Multi-Scale Restoration (MSR) module. Inside the Generator, three encoders sharing the same weights process complementary visual inputs: one extracts structural character features from black-and-white images, a second captures shape and background texture from damaged fragments, and a third encodes background texture from color images, supported by extended convolutional residual blocks that widen the receptive field. The FA module aligns degraded features with reference glyph features using dynamic offset estimators, deformable convolutions, and a non-local attention mechanism tailored for curved inscription edges. Meanwhile, the MSR module applies partial convolutions across multiple kernel sizes, masking out occluded areas to preserve sharp edges while fusing local and global textures. Adversarial training combines pixel-wise L1 reconstruction loss—essential for thin strokes—with perceptual, style, and relativistic average least squares adversarial losses.
To extract hierarchical features and classify characters accurately under severe wear, the researchers paired the restoration modules with an Attention-Enriched Convolutional Neural Network (Att-CNN) refined by Seven-Spot Ladybird Optimization (SSL). Standard convolutional networks learn edges and strokes through convolutional, pooling, nonlinear activation, and Softmax classification layers, yet they struggle with long-range spatial dependencies and heavily eroded regions. The Att-CNN addresses this through an encoder-decoder architecture incorporating a dynamic attention mechanism parameterized by a feed-forward neural network, which computes alignment scores and context vectors at each decoding step to focus on damaged strokes while suppressing irrelevant background textures. To enhance training stability and avoid premature convergence compared with Genetic Algorithm, Ant Colony Optimization, and Bee Colony Optimization, SSL partitions the search space into subspaces and alternates between local and wide-area searches. Updating candidate solutions relative to subspace and global optima, SSL optimizes trainable convolutional weights, biases, and attention weights while keeping kernel sizes and network architecture fixed.
The authors first evaluated SSL-Att-CNN across multiple established benchmark datasets to test its restoration, detection, and recognition performance against existing systems. On three image restoration benchmarks—DDenoise, DRestore, and DSynthetic—the model was compared with 11 prior methods, including DeepRes, DnCNN, IDCCW, SinGAN, Noise2same, InvDN, Wavelet filtering, Bilateral filtering, BM3D, DiffACR, and a glyph extraction-driven image generation network. SSL-Att-CNN outperformed all comparators across every dataset, recording a PSNR of 20.41 and SSIM of 0.8865 on DDenoise, a PSNR of 19.95 and SSIM of 0.8953 on DRestore, and a PSNR of 23.74 and SSIM of 0.9086 on DSynthetic. On an oracle bone inscription detection benchmark evaluated against eight detectors—YOLOv8, Improved YOLOv3, Gaussian, SSD, Faster R-CNN, RefineDet, U2NeT, and Prism-OBI—it achieved 90.95% precision, 85.75% recall, and an 88.27% F-measure. Tested on the OBC306 recognition benchmark against ten models including ResLT, SADE, OracleNet, DANet, and Prism-OBI, SSL-Att-CNN reached 97.58% accuracy.
To ensure direct comparability on the primary dataset, Zhang and Xing retrained all existing restoration and recognition models alongside SSL-Att-CNN on the Colored Oracle Bone Dataset under identical preprocessing, feature extraction, and data-split conditions. Against the 11 restoration and denoising baselines, SSL-Att-CNN again led with a PSNR of 23.76 and an SSIM of 0.9088. In character recognition comparisons against 17 retrained detection and classification models—including YOLOv8, Improved YOLOv3, SSD, Faster R-CNN, U2NeT, ResLT, SADE, MixupAda, TailMix, OracleNet, A-DeConv, UFCNet, UDCN, DANet, and Prism-OBI—the proposed framework achieved 98.33% accuracy, 98.03% precision, 98.68% recall, and a 98.35% F-measure. In a separate sample-level analysis across ten test examples labeled S1 through S10, restoration PSNR climbed steadily from 31.0 dB to 37.1 dB while character recognition rose from approximately 90.0% to 95.4%. Most samples exhibited small reconstruction errors, with considerable errors confined to only a few examples, suggesting that higher visual reconstruction fidelity aligned closely with improved character identification.
To verify how each architectural element contributed to these gains, the researchers conducted an ablation study comparing a baseline CNN, the FA and MSR modules, an unoptimized Att-CNN, SSL, and the full SSL-Att-CNN. The baseline CNN delivered the weakest restoration and recognition performance, whereas integrating structural alignment, multi-scale texture recovery, attention-guided feature extraction, and SSL optimization produced the strongest accuracy, PSNR, and SSIM. The team further assessed repeatability through five-fold cross-validation, dividing the dataset into five parts so that each fold served once for validation while original images were assigned to folds prior to augmentation to prevent leakage. Across the five folds, SSL-Att-CNN maintained 98.33% accuracy, 98.03% precision, 98.68% recall, and a 98.35% F1-measure. In statistical comparisons with OracleNet across those folds, standard errors were 0.1418 for accuracy, 0.1497 for precision, 0.1985 for recall, and 0.1702 for F1-measure, with p-values below 0.001 and Cohen’s d values indicating very large effect sizes.
Although SSL-Att-CNN demonstrates strong performance across controlled benchmarks, the authors outline clear technical boundaries before the method can be deployed widely in archaeological settings. In particular, real-time implementation is currently restricted by heavy computing requirements and the need for a sufficient volume of training samples. Because the Colored Oracle Bone Dataset began with only 100 original fragment photographs expanded through synthetic transformations, broadening sample diversity remains essential for stronger generalization. Looking ahead, Zhang and Xing note that combining self-supervised learning, transformer-based architectures, and multi-modal analysis incorporating textual and archaeological metadata could strengthen future iterations of the framework. They also point toward developing lightweight versions suitable for mobile deployment, which could assist historians, archaeologists, and museum specialists with digital documentation, archive management, and cultural heritage preservation while keeping the semantic structure of ancient inscriptions intact.
Subject of Research: Deep learning restoration and character recognition for damaged ancient oracle bone inscription fragments.
Article Title: Deep neural network based intelligent restoration and character recognition method for oracle bone fragments
Article References: Zhang, L., & Xing, L. (2026). Deep neural network based intelligent restoration and character recognition method for oracle bone fragments. Discover Artificial Intelligence, 6(1), Article 2044. https://doi.org/10.1007/s44163-026-02773-0
Image Credits: AI Generated
DOI: 10.1007/s44163-026-02773-0
Keywords: Oracle Bone Inscriptions, Deep Learning, Image Restoration, Character Recognition, Convolutional Neural Networks, Generative Adversarial Networks, Attention Mechanisms, Feature Alignment, Multi-Scale Restoration, Seven-Spot Ladybird Optimization, Cultural Heritage Preservation, Digital Archaeology, Ancient Chinese Writing, Image Preprocessing, Deformable Convolutions, Five-Fold Cross-Validation, Ablation Study, Discover Artificial Intelligence
News Source: Blake Davidson. (December 2, 2026). Unified Neural Network Reconstructs and Classifies Damaged Oracle Bone Inscriptions. Scienmag.



