Algorithm and software for determining a musical genre by lyrics to create a song hit

A.A. Triantafillu, M.A. Mateshko, V.L. Shevchenko, І.P. Sinitsyn


One of the needs of music business is a quick classification of the song genre by means of widely available tools. This work focuses on improving the accuracy of the song genre determination based on its lyrics through the development of software that uses new factors, namely the rhythm of the text and its morpho-syntactic structure. In the research Bayes Classifier and Logistic Regression were used to classify song genres, a systematic approach and principles of invention theory were used to summarize and analyze the results. New features were proposed in the paper to improve the accuracy of the classification, namely the features to indicate rhythm and parts of speec h in the song.

Problems in programming 2021; 2: 85-94


genre; rhythm; song; text; classification

Full Text:



Greer, T. and Narayanan, S., 2019. Using Shared Vector Representations of Words and Chords in Music for Genre Classification. SMM19, Workshop on Speech, Music and Mind 2019, [online] pp.46-49. Available at: https://www.isca

Sadovsky, A. and Chen, X., 2006. Song Genre and Artist Classification via Supervised Learning from Lyrics. [online] pp.1-18. Available at:

Brennan, C., Paul, S., Yalamanchili, H. and Yum, J., 2018. Classifying Song Genres Using Raw Lyric Data with Deep Learning. [online] GitHub. Available at: 2021. The CMU Pronouncing Dictionary. [online] Available at:

Brownlee, J., 2021. Logistic Regression Tutorial for Machine Learning [online] Machine Learning Mastery. Available at:

Shevchenko, V., 2011. Optimization Modeling in Strategic Planning. CVSD NUOU, pp. 283.

Brownlee, J., 2019. Logistic Regression Tutorial for Machine Learning. [online] Machine Learning Mastery. Available at:

Triantafillu A., 2021. Song Genre Predictor GitHub Project. [online] Available at:



  • There are currently no refbacks.