Recognition of Emotions in Music Using Machine Learning Algorithms

Music is vital for entertainment, emotion regulation, and stress relief. With digital platforms like Spotify, classifying large music datasets has become essential. This introduces a machine-learning framework to detect four emotions Happy, Sad, Calm, and Energetic in Hindi songs. Music has the unique ability to evoke and convey a wide range of human emotions, making it a powerful medium for both artistic expression and practical applications. A curated Hindi music dataset was segmented into 20-second WAV clips (44.1 kHz), preprocessed with high-pass filtering and volume normalization. Acoustic features extracted included: (1) 13-dimensional MFCCs, (2) 12-dimensional chroma vectors, (3) Zero-Crossing Rate, and (4) Spectral Rolloff. Data was split into training (70%), validation (15%), and testing (15%) sets using stratified sampling. Three classifiers were applied: Decision Tree (max depth 10), Random Forest (100 trees, depth 12), and XGBoost (200 estimators, learning rate 0.1, depth 6). XGBoost performed best with 86.4% accuracy, while Random Forest and Decision Tree achieved 83.6% and 74.2%, respectively. "Sad" and "Calm" were the most confused classes (~8%). Results show ensemble models effectively classify emotions in regional music and support applications like mood-based playlists and smart music systems.

Authors

Institutions

Publication Details

Journal
International Research Journal on Advanced Engineering and Management (IRJAEM)
Published
2025-07-25
DOI
https://doi.org/10.47392/irjaem.2025.0394
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

Recognition of Emotions in Music Using Machine Learning Algorithms

M. Sonawane, Prof. Kanchan Mahajan, Mangal Patil, Prof. Sheetal V. Shelke et al.
International Research Journal on Advanced Engineering and Management (IRJAEM)
Music and Audio Processing
article

Recognition of Emotions in Music Using Machine Learning Algorithms

M. Sonawane, Prof. Kanchan Mahajan, Mangal Patil, Prof. Sheetal V. Shelke, Prof. Vinod P. Mulik, Ms. Isha P. Vetal
article en

Abstract

Music is vital for entertainment, emotion regulation, and stress relief. With digital platforms like Spotify, classifying large music datasets has become essential. This introduces a machine-learning framework to detect four emotions Happy, Sad, Calm, and Energetic in Hindi songs. Music has the unique ability to evoke and convey a wide range of human emotions, making it a powerful medium for both artistic expression and practical applications. A curated Hindi music dataset was segmented into 20-second WAV clips (44.1 kHz), preprocessed with high-pass filtering and volume normalization. Acoustic features extracted included: (1) 13-dimensional MFCCs, (2) 12-dimensional chroma vectors, (3) Zero-Crossing Rate, and (4) Spectral Rolloff. Data was split into training (70%), validation (15%), and testing (15%) sets using stratified sampling. Three classifiers were applied: Decision Tree (max depth 10), Random Forest (100 trees, depth 12), and XGBoost (200 estimators, learning rate 0.1, depth 6). XGBoost performed best with 86.4% accuracy, while Random Forest and Decision Tree achieved 83.6% and 74.2%, respectively. "Sad" and "Calm" were the most confused classes (~8%). Results show ensemble models effectively classify emotions in regional music and support applications like mood-based playlists and smart music systems.

International Research Journal on Advanced Engineering and Management (IRJAEM)Vol. 3(07)
Bharati Vidyapeeth (Deemed to be University) (IN)
Openalex Percentile: Top 77%
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.