Adaptive Real-Time Music Genre Classification Using Transformer-Based Auditory Perception Models
Table Of Contents
Chapter ONE
INTRODUCTION
- 1.1Introduction of the Study
- 1.2Background of the Study
- 1.3Problem Statement
- 1.4Objectives of the Study
- 1.5Limitations of the Study
- 1.6Scope of the Study
- 1.7Significance of the Study
- 1.8Structure of the Research
- 1.9Definition of Terms
Chapter TWO
LITERATURE REVIEW
- 2.1Review of Conceptual Foundations in Music Information Retrieval
- 2.2Historical Overview of Genre Classification Techniques
- 2.3Transformer Architectures for Audio Processing
- 2.4Auditory Perception Models and Psychoacoustics
- 2.5Feature Representations for Music Data (MFCC, Chromagrams, Tensor Mel Spectrograms)
- 2.6Deep Learning in Music Genre and Style Classification
- 2.7Dataset Landscape for Music Genre Tasks (GTZAN, Ballroom, FMA, etc.)
- 2.8Evaluation Metrics for Classification Tasks
- 2.9Real-Time Audio Processing Considerations
- 2.10Gaps and Opportunities for Transformer-Based Approaches
Chapter THREE
RESEARCH METHODOLOGY
- 3.1Research Design and Rationale
- 3.2Data Collection and Preprocessing
- 3.3Audio Feature Extraction and Representation Engineering
- 3.4Model Architecture: Transformer-Based Auditory Perception Model
- 3.5Training Procedure and Hyperparameter Tuning
- 3.6Data Augmentation Techniques for Robustness
- 3.7Evaluation Framework and Validation Strategy
- 3.8Ethical Considerations and Fairness in Music Classification
- 3.9Reproducibility and Documentation
- 3.10Deployment Considerations for Real-Time Systems
Chapter FOUR
DATA PRESENTATION AND ANALYSIS
- 4.1System Architecture and Pipeline Overview
- 4.2Dataset Preparation and Baseline Establishment
- 4.3Feature Extraction and Representation Benchmarking
- 4.4Transformer Model Variants and Performance Analysis
- 4.5Attention Mechanisms and Interpretability in Audio Models
- 4.6Real-Time Inference Performance and Latency Optimization
- 4.7Generalization Across Genres and Cross-Dataset Evaluation
- 4.8Discussion of Findings in the Context of Theory and Practice
Chapter FIVE
SUMMARY, CONCLUSION AND RECOMMENDATIONS
- 5.1Summary of Key Findings
- 5.2Theoretical Implications and Contributions
- 5.3Practical Implications for Music Production and Curriculum
- 5.4Limitations and Potential Sources of Bias
- 5.5Recommendations for Future Work
- 5.6Conclusion and Final Reflections
Project Abstract
Adaptive Real-Time Music Genre Classification Using Transformer-Based Auditory Perception Models investigates a robust framework for instantaneous genre identification from live audio streams. This work addresses the challenge of real-time performance where latency, accuracy, and generalization must be balanced across diverse musical contexts, including cross-genre blends, streaming constraints, and noisy environments. We propose a hierarchical transformer architecture inspired by auditory perception principles, combining a learned mel-spectrogram frontend with selective attention mechanisms to simulate human perceptual focus on salient timbral and rhythmic cues. The model leverages a multi-scale temporal encoding strategy to capture modulations from sub-second rhythms to sustained tonal textures, enabling resilient genre discrimination even under tempo and key variations. Key contributions include the design of an online inference pipeline that orchestrates streaming feature extraction, windowed self-attention, and incremental classification with bounded latency. We introduce a novel dynamic frame-skipping policy that adapts to computational load while maintaining reliability of genre predictions, and a cross-domain adaptation module trained with self-supervised objectives to enhance performance on unseen datasets and in-the-wild recordings. The system integrates uncertainty-aware decision fusion to mitigate misclassifications in noisy segments, producing probabilistic genre estimates with calibrated confidence scores suitable for downstream applications such as adaptive playlisting, live DJ systems, and real-time music recommendation engines. To evaluate effectiveness, we curate a benchmark that encompasses multiple datasets with varying recording conditions, instrumentations, and production qualities, including studio tracks, live performances, and user-generated content. We benchmark against state-of-the-art baselines on metrics capturing accuracy, latency, and robustness to noise and domain shift. Experimental results demonstrate a substantial improvement in real-time genre accuracy while maintaining sub-200 ms end-to-end latency on standard hardware, with pronounced gains in complex mixtures and overlapping genres. Ablation studies reveal the critical roles of multi-scale temporal encoding, spectral-aware attention, and uncertainty fusion in achieving stable performance across challenging scenarios. Additionally, we examine deployment considerations such as model compression via knowledge distillation and quantization, ensuring compatibility with edge devices and streaming platforms. A qualitative analysis of error cases provides insights into genre boundary ambiguity and the influence of production techniques on perceptual cues, informing avenues for future enhancements in perceptual modeling and dataset curation. Overall, the work advances real-time music genre classification by integrating transformer-based perceptual abstractions with practical streaming constraints, delivering accurate, low-latency, and robust genre inference suitable for dynamic, real-world audio environments.
Project Overview
What This Project Is About
A straightforward exploration of how computer models can listen to music and guess its genre in real time. The project combines how we represent sound with a type of machine learning model that can focus on important parts of the sound as it streams.
The Problem It Addresses
Many music systems struggle to identify genres quickly and accurately when the song is playing live or with varying audio quality. There is a need for models that can adapt to new songs and still classify genres as the music plays, without long delays.
Objectives of the Project
- Understand how musical features relate to genres in streaming data.
- Implement a lightweight transformer-based model suitable for real-time processing.
- Evaluate accuracy and latency across different genres and audio qualities.
- Explore how to adapt the model to new or evolving music styles.
- Provide practical guidelines for deploying the system in apps or services.
What You Will Do Step by Step
- Study basic audio concepts and genre labeling basics.
- Collect or build a streaming-friendly dataset with labeled genres.
- Convert audio into simple, informative features suitable for real-time use.
- Build and train a transformer-based model optimized for speed.
- Test the model on live or simulated streaming data to measure latency and accuracy.
- Analyze errors to understand which genres are confused and why.
- Experiment with lightweight optimizations for faster inference.
- Prepare a short guide on how to deploy the system in simple apps.
Expected Outcome
A functioning, real-time music genre classifier that can infer genres with low delay and reasonable accuracy, along with a practical deployment plan and insights into its limitations and future improvements.