Transforming DNA Sequences into Musical Patterns Via A 3-mer Classification

Read full text
Authors: Abel Prayoga, Elis Khatizah
Cited by: 0

Abstract

DNA can be viewed as a symbolic sequence with patterns that vary across species. This study explores DNA sequences through two complementary approaches: species classification using simple machine learning methods and transformation of DNA into musical note representations. In the first task, DNA sequences from five organisms with different evolutionary distances are represented using 3-mer and 6-mer features. These k-mers form a vocabulary whose frequency counts are converted into feature vectors. Random Forest (RF) and Support Vector Machine (SVM) models are then applied for five-class classification. Using an 80:20 train-test split and 10-fold cross-validation, the SVM model achieved average accuracies above 0.90 for 3-mer features, with low standard deviation, indicating stable performance. In the second approach, 3-mer motifs are mapped to musical notes to generate species-based musical patterns. The resulting musical representations exhibit distinct structural differences across species, reflecting variations in underlying sequence composition. Overall, the results demonstrate that 3-mer features are effective for species discrimination and that musical transformation provides an alternative and intuitive way to visualize DNA sequence patterns. Keywords – DNA Classification, DNA-to-Music, Random Forest, SVM.

Fields of Study & Subjects

Fractal and DNA sequence analysis Machine Learning in Bioinformatics Genomics and Phylogenetic Studies

Publication details

Journal / source
JURNAL Al-AZHAR INDONESIA SERI SAINS DAN TEKNOLOGI
Volume
11
Issue
1
Pages
85–85
Publication date
30 January 2026