# Living in Perfect Harmony - Where Music and Machine Learning Meet

- Speaker: [Yama Anin Aminof](/wiki/speakers/yama-anin-aminof.md)
- Event: [Reversim Summit 2022](/wiki/years/2022.md)
- Video: https://www.youtube.com/watch?v=Iv6ifIAQX7M
- Transcript: [/transcripts/2022/05-Iv6ifIAQX7M.md](/transcripts/2022/05-Iv6ifIAQX7M.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Machine Learning](/wiki/topics/machine-learning.md), [Performance](/wiki/topics/performance.md), [AI and LLMs](/wiki/topics/generative-ai.md), [Data Science](/wiki/topics/data-science.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker explores the intersection of machine learning and music, focusing on how data science solves challenges in the music industry like matching songs with audiences. The talk demonstrates various feature extraction techniques combining domain knowledge in music theory and linguistics with technical approaches like natural language processing and digital signal processing. Attendees learn how to extract lyric repetition, embedding, spectral features, and harmonic data to build recommendation and classification systems.

## Key points

- [1:23](https://www.youtube.com/watch?v=Iv6ifIAQX7M&t=83s) The massive volume of existing songs creates a major challenge for connecting tracks with the right audience through recommendations, searches, or licensing.
- [2:37](https://www.youtube.com/watch?v=Iv6ifIAQX7M&t=157s) Songs are traditionally categorized using manual tags and genres, but machine learning can automate classification to handle larger catalogs efficiently.
- [4:55](https://www.youtube.com/watch?v=Iv6ifIAQX7M&t=295s) Feature extraction combines domain knowledge from music theory and linguistics with technical methods from natural language processing and digital signal processing.
- [5:55](https://www.youtube.com/watch?v=Iv6ifIAQX7M&t=355s) Lyric repetition and choruses can be automatically detected using string distance metrics like Levenshtein distance.
- [10:19](https://www.youtube.com/watch?v=Iv6ifIAQX7M&t=619s) Word embeddings and Doc to Vec allow text data to be converted into numerical vectors to capture semantic and syntactic meaning for similarity analysis.
- [15:44](https://www.youtube.com/watch?v=Iv6ifIAQX7M&t=944s) Digital signal processing utilizes Fourier transforms to convert audio files from the time domain to the frequency domain for spectral and rhythm analysis.
- [21:50](https://www.youtube.com/watch?v=Iv6ifIAQX7M&t=1310s) Source separation techniques isolate harmonic elements and percussion from an audio mix to enable deeper musicological analysis.

## Takeaways

- Combine domain knowledge in music theory with machine learning techniques to extract meaningful features from audio and text.
- Use existing open-source libraries like Librosa in Python to easily process audio files and extract spectral and rhythmic features.
- Apply embedding models such as Word to Vec and Doc to Vec to compute similarity metrics between song lyrics.

## Questions this talk answers

- How can machine learning be used to automatically recommend or search for songs in a large catalog?
- What are the best methods to extract features from both song lyrics and audio signals?
- How do you separate harmonic elements from percussion in an audio file for analysis?

## Technologies

Python, Librosa, FFmpeg, Word2Vec

## Tags

audio processing, embeddings, feature extraction, machine learning, music recommendation, natural language processing
