The embodiment of the present application discloses
a DNA coding method and device with biological constraints. In the method, a progressive staged training strategy is adopted, the first stage is trained to minimize the
distortion of the original source and the reconstructed source, and through the
collaborative design of the centralized coding, the symmetrical quantization threshold and the symmetrical
network structure, the compression sequence naturally satisfies the ideal
GC content when represented as the ATCG
base sequence. In the second stage, the
loss function of the biological constraint is added to maintain
low distortion while making the
base sequence satisfy the biological base arrangement characteristics. The present application naturally represents the
floating point sequence as the biological
base sequence through the structural design, the base distribution has uniformity, and has good
distortion performance, improves the efficiency of
DNA data storage, and reduces the error rate.