# TS-Resformer: a model based on multimodal fusion for the classification of music signals

**Authors:** Yilin Zhang

PMC · DOI: 10.3389/fnbot.2025.1568811 · Frontiers in Neurorobotics · 2025-05-13

## TL;DR

This paper introduces TS-Resformer, a deep learning model that improves music genre classification by combining spectral and time-series features using a novel attention mechanism.

## Contribution

The novel TS-Resformer model integrates a time-frequency attention mechanism with a Res-Transformer architecture to enhance music genre classification accuracy.

## Key findings

- The TS-Resformer model achieves 90.23% accuracy on the FMA-small dataset.
- The model improves classification accuracy by fusing spectral and time-series features.
- Time-frequency attention mechanisms enhance feature extraction from music signals.

## Abstract

The number of music of different genres is increasing year by year, and manual classification is costly and requires professionals in the field of music to manually design features, some of which lack the generality of music genre classification. Deep learning has had a large number of scientific research results in the field of music classification, but the existing deep learning methods still have the problems of insufficient extraction of music feature information, low accuracy rate of music genres, loss of time series information, and slow training. To address the problem that different music durations affect the accuracy of music genre classification, we form a Log Mel spectrum with music audio data of different cut durations. After discarding incomplete audio, we design data enhancement with different slicing durations and verify its effect on accuracy and training time through comparison experiments. Based on this, the audio signal is divided into frames, windowed and short-time Fourier transformed, and then the Log Mel spectrum is obtained by using the Mel filter and logarithmic compression. Aiming at the problems of loss of time information, insufficient feature extraction, and low classification accuracy in music genre classification, firstly, we propose a Res-Transformer model that fuses the residual network with the Transformer coding layer. The model consists of two branches, the left branch is an improved residual network, which enhances the spectral feature extraction ability and network expression ability and realizes the dimensionality reduction; the right branch uses four Transformer coding layers to extract the time-series information of the Log Mel spectrum. The output vectors of the two branches are spliced and input into the classifier to realize music genre classification. Then, to further improve the classification accuracy of the model, we propose the TS-Resformer model based on the Res-Transformer model, combined with different attention mechanisms, and design the time-frequency attention mechanism, which employs different scales of filters to fully extract the low-level music features from the two dimensions of time and frequency as the input to the time-frequency attention mechanism, respectively. Finally, experiments show that the accuracy of this method is 90.23% on the FMA-small dataset, which is an improvement in classification accuracy compared with the classical model.

## Full-text entities

- **Genes:** F3 (coagulation factor III, tissue factor) [NCBI Gene 2152] {aka CD142, TF, TFA}, SQLE (squalene epoxidase) [NCBI Gene 6713]
- **Diseases:** glomerular lesions (MESH:D007674)
- **Chemicals:** RNN (-)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12106318/full.md

## Figures

15 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12106318/full.md

## References

33 references — full list in the complete paper: https://tomesphere.com/paper/PMC12106318/full.md

---
Source: https://tomesphere.com/paper/PMC12106318