Rewritable two-dimensional DNA-based data storage with machine learning reconstruction

Chao Pan, S. Kasra Tabatabaei, S. M. Hossein Tabatabaei Yazdi, Alvaro G. Hernandez, Charles M. Schroeder, Olgica Milenković

Abstract

DNA-based data storage platforms traditionally encode information only in the nucleotide sequence of the molecule. Here we report on a two-dimensional molecular data storage system that records information in both the sequence and the backbone structure of DNA and performs nontrivial joint data encoding, decoding and processing. Our 2DDNA method efficiently stores images in synthetic DNA and embeds pertinent metadata as nicks in the DNA backbone. To avoid costly worst-case redundancy for correcting sequencing/rewriting errors and to mitigate issues associated with mismatched decoding parameters, we develop machine learning techniques for automatic discoloration detection and image inpainting. The 2DDNA platform is experimentally tested by reconstructing a library of images with undetectable or small visual degradation after readout processing, and by erasing and rewriting copyright metadata encoded in nicks. Our results demonstrate that DNA can serve both as a write-once and rewritable memory for heterogenous data and that data can be erased in a permanent, privacy-preserving manner. Moreover, the storage system can be made robust to degrading channel qualities while avoiding global error-correction redundancy.

Introduction

DNA-based data storage offers unprecedented density and longevity compared to traditional silicon-based media. However, widespread adoption is hindered by high synthesis costs, the overhead of error-correction codes (ECC), and the difficulty of rewriting stored information. Current methods often require over 30% redundancy to manage the high error rates of molecular processes. Furthermore, traditional decoders fail if the channel noise exceeds expected parameters. This paper introduces "2DDNA," a hybrid system that utilizes both the nucleotide sequence and the physical backbone of DNA to store data, while leveraging machine learning (ML) to reconstruct images without heavy mathematical redundancy.

The 2DDNA Architecture

The 2DDNA platform operates across two molecular dimensions to optimize storage and functionality.

The Sequence Dimension: Image Content

For bulk data storage, the system employs an aggressive compression pipeline. RGB channels are separated and quantized, then linearized using a Hilbert space-filling curve to preserve spatial correlation. Unlike traditional methods, global ECC is omitted to maximize density. Instead, the system uses "Unequal Error-correction" where specific high-priority features, such as facial details, receive targeted protection while the rest of the image relies on ML recovery.

Encoding workflow for image data, showing the mapping of bit blocks to DNA sequences and targeted error correction for facial details.

The Topological Dimension: Rewritable Metadata

Metadata, such as ownership or timestamps, is recorded in the "topological dimension" using enzymatic "nicking" (intentional breaks in one strand of the DNA double helix). This acts like a molecular punch card. Because nicks can be sealed with T4 DNA ligase and re-cut, this layer is truly rewritable, enabling privacy-preserving erasure and updates without re-synthesizing the entire DNA pool.

The 2DDNA readout process, illustrating how sequence information and topological metadata (nicks) are extracted and sequenced.

ML-Based Reconstruction

To compensate for the lack of global ECC, the researchers developed a post-processing pipeline using computer vision. This involves discoloration detection to identify corrupted pixels and deep learning models (EdgeConnect and GatedConvolution) for image inpainting. By treating the DNA medium and the reconstruction algorithm as a joint system, the platform "heals" errors by inferring missing data from surrounding context.

Experimental Results

The system was validated using a library of movie stills (~1 MB). Key findings include:

  • Storage Density: Achieved a raw density of 3.73 bits/nt, surpassing the theoretical 2 bits/nt limit of standard encoding due to compression and ML-assisted recovery.
  • Visual Fidelity: Reconstructed images showed minimal degradation, with ML-based inpainting significantly outperforming standard enhancement techniques (PSNR gains of 5-10 dB).
  • Rewritability: Successfully demonstrated erasing and rewriting metadata (e.g., changing "ILLINOIS" to "GRAINGER") with 100% accuracy.
  • Robustness: Maintained functionality at sequencing coverages as low as 112x, reducing operational costs.

Conclusion

The 2DDNA platform demonstrates that DNA can function as both a write-once and a rewritable memory. By substituting mathematical redundancy with semantic machine learning reconstruction, the system achieves high density and robustness. Future work will focus on scaling the system to larger datasets and exploring in-memory molecular computing.

Summary updated

BibTeX
@inproceedings{pan2022rewritable,
  author = {Chao Pan and S. Kasra Tabatabaei and S. M. Hossein Tabatabaei Yazdi and Alvaro G. Hernandez and Charles M. Schroeder and Olgica Milenković},
  title = {{Rewritable two-dimensional DNA-based data storage with machine learning reconstruction}},
  booktitle = {Nature Communications},
  year = {2022},
  doi = {10.1038/s41467-022-30140-x},
}
Figure