dataset / README.md
sujal7102003's picture
Upload entire dataset folder
e88dfd0 verified

🎡 Music Feature Dataset Analysis

Welcome to the Exploratory Data Analysis (EDA) of a music feature dataset. This project aims to uncover insights into how audio features of songs influence user preferences, using the liked column as the target variable.


πŸ“ Dataset Overview: train.csv

This dataset contains various musical/audio features for tracks, along with a liked score representing user preference.

🎼 Features Description

Feature Description
danceability Suitability of a track for dancing.
energy Intensity and activity level of the track.
key Musical key as an integer (0 to 11).
loudness Overall loudness in decibels (dB).
mode Tonality: major (1) or minor (0).
speechiness Presence of spoken words in the track.
acousticness Likelihood the track is acoustic.
instrumentalness Predicts whether a track contains no vocals.
liveness Presence of an audience in the recording.
valence Positiveness conveyed by the music.
tempo Tempo in beats per minute (BPM).
duration_ms Duration of the track in milliseconds.
time_signature Estimated time signature (usually 3, 4, or 5).
liked User preference score (continuous numerical value).

🧼 Data Preprocessing

  • βœ… Handled missing values
  • βœ… Removed duplicates
  • βœ… Normalized numeric features using Z-score normalization
  • βœ… Detected outliers using box plots
  • βœ… Computed summary statistics (mean, std, etc.)

πŸ“Š Visual Analysis

Visualizations included in the analysis:

Visualization Description
Missing Values Heatmap of missing values
Unique and Duplicated Count of unique and duplicate rows
Z-Score Normalized feature distributions
Top & Bottom Liked Most and least liked tracks
Distribution Histograms of key features
Danceability Histogram Focused view on danceability distribution
Mean and STD Feature-wise mean and standard deviation
Correlation Heatmap Feature correlation with liked
Boxplot Outlier detection via box plots

πŸ“ˆ Key Findings

  • πŸ”Ή Features like energy, valence, and danceability have positive correlation with the liked score.
  • πŸ”Ή Features like key and mode show low or no correlation with user preference.
  • πŸ”Ή Most features are approximately normally distributed.
  • πŸ”Ή Tracks that are highly energetic, positive, and danceable are generally more liked.

πŸ› οΈ Tools & Libraries Used

  • Language: Python 🐍
  • Libraries:
    • pandas, numpy for data handling
    • matplotlib, seaborn for visualizations
    • scikit-learn for preprocessing

πŸ“Œ Conclusion

This analysis helps identify which audio features most impact user preferences. These insights can guide the development of:

  • 🎧 Music recommendation systems
  • πŸ“Š User behavior models
  • πŸ€– Feature engineering in ML projects

πŸ‘€ Author

Sujal Thakkar