Abstract
Traditional computational creativity has largely focused on generating dance moves for a given song. This paper explores the inverse: Dance2Music, a system that generates melodic sequences synchronized with a dancer's movements. By representing both dance and music through similarity matrices, the authors develop an offline search-based method and a real-time neural network capable of turning body poses into pleasing pentatonic melodies.
Introduction
Music and dance are intrinsically linked, yet the "Music-to-Dance" direction dominates AI research. We have models that can choreograph routines for pop songs, but we lack robust tools that allow a dancer to drive the music. The primary challenge lies in synchronization: mapping fluid, spatial body movements to discrete, temporal musical notes. Dance2Music bridges this gap, enabling applications in interactive art, social media, and personalized fitness.
Methodology
The authors propose a framework that treats music generation as an optimization problem based on structural correlation.
Representation
- Dance: Poses are extracted using OpenPose (18 2D keypoints), converted into a 36-dimensional vector per frame.
- Music: To ensure "pleasing" output, the vocabulary is restricted to five notes from the C major pentatonic scale (C4, D4, E4, G4, A4), played at fixed intervals.
The Similarity Hypothesis
The core idea is that if two poses in a dance are similar, the corresponding musical notes should also be similar.
- Dance Similarity Matrix ($D$): Constructed using cosine similarity between poses.
- Music Similarity Matrix ($M$): Based on the distance between notes.
Generation Approaches
- Offline (Search-based): Uses beam search to find a note sequence maximizing the Pearson correlation between dance and music similarity matrices. A "local history" window (60 frames) is used to maintain dynamic variety.
- Online (Neural Network): A real-time model trained to mimic the offline search. It uses 6 CNN layers for the dance similarity matrix and an LSTM for note history, predicting the next note via a 5-way classification.
Key Insights
- Consonance as a Constraint: The pentatonic scale bypasses complex music theory, allowing the model to focus on rhythm and structure.
- Structural Alignment: By mapping relationships between poses to relationships between notes, the system remains agnostic to specific dance styles.
- Local Context: Optimizing for local sliding windows captures minute transitions better than global optimization, which often leads to repetitive melodies.
Results and Evaluation
The researchers evaluated the system using the AIST street dance dataset and YouTube dance videos.
- Mimicry Accuracy: The online neural network achieved 73.5% accuracy in predicting the offline model's choices (baseline: 20%).
- Human Preference: In a "win ratio" study, the Offline approach was preferred 77% of the time, while the Online approach was preferred 70% of the time over a heuristic baseline.
- Correlation: The online model maintained a mean correlation of 0.33 with the dance structure, compared to 0.38 for the offline model.
Conclusion and Future Work
Dance2Music successfully demonstrates that dance can drive music generation through structural correlation. Future work includes increasing musical complexity (chords, polyphony), supporting multi-person tracking, and utilizing 3D pose estimation for richer input data.
Summary updated