In the last centuries of the Shang dynasty, scribes took turtle shells and cattle bones and cut characters into them. They wrote down what the diviners had asked and what the cracks had answered, and they kept records. Those marks are the earliest known developed system of Chinese writing, the ancestor of every character since. How old they are depends on whom you ask: the archaeology site Arkeonews puts them at about 3,600 years, while a EurekAlert release on another decipherment project speaks of characters 3,000 years old.
Then the earth held them. Millennia underground did what burial does. Many of the surviving pieces are fragments now, their surfaces worn, their edges broken, their characters missing strokes. Experienced scholars struggle with them.
Here is a thought, offered only as a thought: the kings of the Shang put their questions about the future to these bones, and now the bones can barely answer questions about the past.
Luoyang
Two researchers at the Luoyang Institute of Science and Technology, Liyong Zhang and Lizhi Xing, have proposed a remedy. As Kayra Buyukyildirim reported for Arkeonews, their study in Discover Artificial Intelligence (volume 6, article 2044) describes a single deep-learning framework that does two jobs. It rebuilds the damaged image, then identifies the character on it.
The material they started with was small. The Colored Oracle Bone Dataset, an open collection on Kaggle, holds 100 photographs of inscriptions with fractures, worn surfaces, incomplete characters and broken edges. A hundred pictures cannot train a network, so the team made more of them, 2,000 images in all. They rotated and reshaped the originals, changed the lighting, added artificial noise and simulated further decay.

The authors were careful about one trap. They split the 100 originals into training, validation and test groups at a ratio of 70:15:15, and kept every altered copy in the same group as the photograph it came from. Without that rule, the machine could have been tested on near-duplicates of pictures it had already studied. Before training, each image passed through three filters. Median filtering removed noise but kept the engraved outlines, histogram equalization brought faint characters forward, and min-max normalization put pixel values on a common scale.
So the machine learned what ruin looks like partly from ruin that people had manufactured.
The ladybirds
The system is called SSL-Att-CNN. At its core is a generative adversarial network with two specialised modules. The first, Feature Alignment, compares the shape and surface of a damaged character against reference characters, and uses deformable convolutions to cope with irregular contours and uneven strokes. The second, Multi-Scale Restoration, fills the gaps by reading the surrounding image at several levels of detail. According to the researchers, this lets it repair large missing areas without losing fine surface texture. An attention mechanism steers both modules towards the damaged characters and away from irrelevant background. During training, each reconstruction was scored against its original for pixel accuracy, visual similarity, stylistic consistency and how realistic the repaired areas looked.

Then there is the detail that will stay with readers. To tune the network, the authors used an optimisation method modelled on how seven-spotted ladybirds search for food. Seven-Spot Ladybird Optimization switches between searching widely across many parameter combinations and narrowing in on the promising ones. The authors report that this automatic adjustment of learning rates and attention weights converged faster and more consistently than settings chosen by hand. The insects are not just a mascot: the method’s name supplies the system’s first three letters.
The numbers
Across three benchmark datasets, the system reached a reported restoration accuracy of 98.33 percent. That beat a list of established methods: DnCNN, SinGAN, deep residual networks, BM3D, wavelet and bilateral filtering, and a diffusion-based approach. Better images also proved easier to read. As peak signal-to-noise ratio rose from about 31 to 37 dB, character recognition climbed from around 90 percent to more than 95 percent.
In separate tests of finding characters on a fragment, the system scored 90.95 percent precision, 85.75 percent recall and an F-measure of 88.27 percent. According to the study, that put it ahead of YOLOv8, Faster R-CNN, SSD and Prism-OBI.
What the figures do not say
Every one of these results traces back to the same 100 photographs. Augmentation multiplied them, but invented damage cannot match the variety of real damage in real museum collections. The model was trained and evaluated on images from the same source collection, and nobody yet knows how it would perform on an independent archive. Arkeonews draws the sober conclusion: for now the work shows what the method might do, and does not prove it reliable as a research tool. The proposed uses are modest. It could help specialists fill in incomplete characters, decide which damaged fragments to examine first, and produce draft readings to check against the originals.

The difference between those uses and the real prize is large. Restoring a missing stroke on a known character is one task. Reading a character no scholar has ever read is another. The Seoul Economic Daily reported that the National Museum of Chinese Writing in Anyang has offered 100,000 yuan since 2016 for each previously undeciphered character that passes expert review. Two rounds of evaluation up to 2024 produced three first-place awards. The paper cites the museum’s director, Huang Dekuan, as saying that scholars agree on about 1,300 characters while more than 3,000 remain unread, and the scholar Jiang Yubin as counting more than 160,000 confirmed fragments.
Other machines have aimed at that harder target. On 88 characters held back from training, the AlphaOracle system’s first guess was right 23.1 percent of the time. A separate study of character detectors found that models with strong overall scores almost fail on rare glyphs. The state, meanwhile, has put the past on a schedule: China’s five-year archaeology plan gives AI a role alongside deep-sea robots.
The Shang diviners heated their bones until they cracked and read the lines. Today the bones go into a network tuned by imitation ladybirds, and an image comes out with the gaps filled in. Whether that image is the scribe’s character or the machine’s best guess at it is a question 100 photographs cannot settle.
