Related Experiment Video
Updated: May 22, 2025

Design and Evaluation of Smart Glasses for Food Intake and Physical Activity Classification
Published on: February 14, 2018
An improved ViT model for music genre classification based on mel spectrogram.
Pingping Wu1, Weijie Gao2, Yitao Chen2
1Jiangsu Key Laboratory of Public Project Audit, School of Engineering Audit, Nanjing Audit University, Nanjing, China.
This study introduces an improved Vision Transformer (ViT) model for automated music genre classification. The enhanced model achieves 86.8% accuracy on the GTZAN dataset, improving feature extraction from Mel spectrograms.
Area of Science:
- Artificial Intelligence
- Music Information Retrieval
- Machine Learning
Background:
- Automated music genre classification is crucial for enhancing user experiences and managing music libraries.
- Existing methods may not fully capture complex features within music audio signals.
Purpose of the Study:
- To propose an improved Vision Transformer (ViT) model for more accurate music genre classification.
- To enhance feature extraction from Mel spectrograms by combining Convolutional Neural Networks (CNNs) and Transformers.
- To improve classification precision using a channel attention mechanism.
Main Methods:
- Utilized an improved Vision Transformer (ViT) architecture.
- Integrated Convolutional Neural Networks (CNNs) with Transformers for feature extraction.
- Incorporated a channel attention mechanism to amplify inter-channel differences in Mel spectrograms.
- Evaluated the model on the GTZAN dataset.
Main Results:
- The proposed model achieved an accuracy of 86.8% on the GTZAN dataset.
- Demonstrated superior performance in extracting comprehensive music genre features compared to previous approaches.
- The channel attention mechanism contributed to more precise classification.
Conclusions:
- The improved ViT model offers a more accurate and efficient method for music genre classification.
- This approach enhances the ability to understand and categorize diverse music genres.
- The findings pave the way for advancements in music information retrieval systems.
Related Concept Videos
Classification of Signals
A continuous-time signal holds a value at every instant in time, representing information seamlessly. In contrast, a discrete-time signal holds values only at specific moments, often denoted as x(n), where...
Mass Spectrum: Interpretation
To...
Perception of Sound Waves
The pitch of a sound depends on the frequency and the pressure amplitude of the source. Two sounds of the same...
Perceiving Loudness, Pitch, and Location
Place theory, or place coding, suggests that different pitches are heard because various sound waves activate specific locations along the cochlea's basilar membrane. The brain determines the pitch of a sound by...
Determination of Expected Frequency
¹³C NMR: Distortionless Enhancement by Polarization Transfer (DEPT)

