Melody prediction of vocal performance using LSTM and attention mechanism and its application in folk music innovation

This paper combines Long Short-Term Memory (LSTM) and Self-Attention mechanisms to predict melody direction in vocal performances, exploring its application in folk music innovation to enhance expressiveness and creative diversity. Using the MAESTRO dataset, which includes audio and MIDI data, the continuous note sequence is divided into fixed-length segments (20 notes each) via a sliding window. The LSTM model captures temporal dependencies in the sequence, while Self-Attention assigns varying weights to inputs across time steps to better capture global context. To overcome the limitations of traditional pitch prediction methods, 10-fold cross-validation is employed to evaluate model performance. Experimental results show that with a window size of 20, the Mean Squared Error (MSE) is 0.023, and training takes 86 minutes, yielding the most balanced results across all configurations. Compared to Bi-LSTM and MusicTransformer, the proposed model excels in pitch prediction accuracy, achieving an average Mean Absolute Error (MAE) of 0.022, R 2 of 0.895, and Pearson Correlation Coefficient (PCC) of 0.925. The model is also tested in the creation of six types of folk music, demonstrating that while it reduces creation time, the harmony consistency slightly lags behind manually created melodies. This model has significant potential in pitch prediction and folk music creation, offering a valuable tool for music composition with high practical application value.

Authors

Institutions

Publication Details

Journal
Journal of Computational Methods in Sciences and Engineering
Published
2025-02-28
DOI
https://doi.org/10.1177/14727978251324133
Primary Topic
Music and Audio Processing
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Melody prediction of vocal performance using LSTM and attention mechanism and its application in folk music innovation

Chenhui LIU, Yumei Zhang
Journal of Computational Methods in Sciences and Engineering
Music and Audio Processing
article

Melody prediction of vocal performance using LSTM and attention mechanism and its application in folk music innovation

Chenhui LIU, Yumei Zhang
article en

Abstract

This paper combines Long Short-Term Memory (LSTM) and Self-Attention mechanisms to predict melody direction in vocal performances, exploring its application in folk music innovation to enhance expressiveness and creative diversity. Using the MAESTRO dataset, which includes audio and MIDI data, the continuous note sequence is divided into fixed-length segments (20 notes each) via a sliding window. The LSTM model captures temporal dependencies in the sequence, while Self-Attention assigns varying weights to inputs across time steps to better capture global context. To overcome the limitations of traditional pitch prediction methods, 10-fold cross-validation is employed to evaluate model performance. Experimental results show that with a window size of 20, the Mean Squared Error (MSE) is 0.023, and training takes 86 minutes, yielding the most balanced results across all configurations. Compared to Bi-LSTM and MusicTransformer, the proposed model excels in pitch prediction accuracy, achieving an average Mean Absolute Error (MAE) of 0.022, R 2 of 0.895, and Pearson Correlation Coefficient (PCC) of 0.925. The model is also tested in the creation of six types of folk music, demonstrating that while it reduces creation time, the harmony consistency slightly lags behind manually created melodies. This model has significant potential in pitch prediction and folk music creation, offering a valuable tool for music composition with high practical application value.

Journal of Computational Methods in Sciences and EngineeringVol. 25(4)
Linyi University (CN)
Industry, innovation and infrastructure
Openalex Percentile: Top 96%
Music and Audio Processing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.