CTIS / README.md
admin
Update README.md
717c37b
|
raw
history blame
8.98 kB
---
license: cc-by-nc-nd-4.0
task_categories:
- audio-classification
language:
- zh
- en
tags:
- music
- art
pretty_name: Chinese Traditional Instrument Sound Dataset
size_categories:
- 1K<n<10K
viewer: false
---
If you want to view the dataset, please visit [here](https://www.modelscope.cn/datasets/ccmusic-database/CTIS/dataPeview)
# Dataset Card for Chinese Traditional Instrument Sound
## Original Content
The original dataset is created by [[1]](https://link.springer.com/content/pdf/10.1007/978-981-13-8707-4_5.pdf), with no evaluation provided. The original CTIS dataset contains recordings from 287 varieties of Chinese traditional instruments, reformed Chinese musical instruments, and instruments from ethnic minority groups. Notably, some of these instruments are rarely encountered by the majority of the Chinese populace. The dataset was later utilized by [[2]](https://ietresearch.onlinelibrary.wiley.com/doi/pdf/10.1049/ccs2.12047) for Chinese instrument recognition, where only 78 instruments—approximately one-third of the total instrument classes—were used.
## Integration
We begin by performing data cleaning to remove recordings without specific instrument labels. Additionally, recordings that are not instrumental sounds, such as interview recordings, are removed to enhance usability.
Finally, instrument categories lacking specific labels are excluded. The filtered dataset contains recordings of 209 types of Chinese traditional musical instruments. Compared to the original 287 instrument types, 78 were removed due to missing instrument labels. Among the remaining instruments, seven have two variants each, and one instrument, Yangqin, has four variants. We treat variants as separate classes, thus 219 labels are included at last.
In the original dataset, the Chinese character label for each instrument was represented by the folder name housing its audio files.
During integration, we add Chinese pinyin label to make the dataset more accessible to researchers who are not familiar in Chinese.
Then, we've reorganized the data into a dictionary with five columns, which includes: audio with a sampling rate of 44,100 Hz, pre-processed mel spectrogram, numerical label, instrument name in Chinese, and instrument name in Chinese pinyin. The provision of mel spectrograms primarily serves to enhance the visualization of the audio in the [viewer](https://www.modelscope.cn/datasets/ccmusic-database/CTIS/dataPeview). For the remaining datasets, these mel spectrograms will also be included in the integrated data structure. The total data number is 4,956, with a duration of 32.63 hours. The average duration of the recordings is 23.7 seconds.
We have constructed the [default subset](#default-subset) of the current integrated version of the dataset. Building on the default subset, we applied silence removal with a threshold of top_db=40 to the audio files, converting them into mel, CQT, and chroma spectrograms. The audio was then segmented into 2-second clips, with segments shorter than 2 seconds padded using circular padding. This process resulted in the construction of the [eval subset](#eval-subset) for dataset evaluation experiments.
## Statistics
| ![](https://www.modelscope.cn/datasets/ccmusic-database/CTIS/resolve/master/data/ctis_bar.jpg) | ![](https://www.modelscope.cn/datasets/ccmusic-database/CTIS/resolve/master/data/ctis_cls.jpg) |
| :--------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------: |
| **Fig. 1** | **Fig. 2** |
Due to the large number of categories in this dataset, we are unable to provide the audio duration per category and the proportion of audio clips by category, as we have done for the other datasets. Instead, we provide a chart showing the distribution of the number of audio clips across different durations, as shown in **Fig. 1**. A second graph, shown in **Fig. 2**, shows the distribution of instrument categories over various durations. From **Fig. 1**, 3611 clips (73%) are concentrated in the range 0-27.5 s, with a steep drop in the number of samples in longer durations. In **Fig. 2**, about half of the instruments, totaling 117, have a duration of less than 437 seconds, while 102 instruments have a duration greater than this number. After the total duration exceeds 881 seconds, the number of instruments drops sharply. This indicates that the dataset has a certain degree of class imbalance.
| Statistical items | Values |
| :------------------------------------------: | :-------------------: |
| Total count | `4956` |
| Total duration(s) | `117482.75025085056` |
| Mean duration(s) | `23.705155417847124` |
| Min duration(s) | `0.27639583333333334` |
| Max duration(s) | `494.2522902494331` |
| Instrument types | `209` |
| Label Numbers | `219` |
| Eval subset total | `43054` |
| Class with the longest audio duartion | `中阮 (Zhong1 ruan3)` |
| Class in the longest audio duartion interval | `箜篌 (Kong1 hou2)` |
## Default Subset Structure
<style>
.ctis td {
vertical-align: middle !important;
text-align: center;
}
.ctis th {
text-align: center;
}
</style>
<table class="ctis">
<tr>
<td>audio</td>
<td>mel</td>
<td>label (200+class)</td>
<td>cname (string)</td>
</tr>
<tr>
<td>.wav, 44100Hz</td>
<td>.jpg, 44100Hz</td>
<td>C0090/<br>C0091/<br>...<br>T0323</td>
<td>大笒/<br>高音横笛/<br>...<br>都它尔</td>
</tr>
</table>
## Maintenance
```bash
git clone git@hf.co:datasets/ccmusic-database/CTIS
cd CTIS
```
## Dataset Description
### Dataset Summary
A dataset of Chinese instrument audio
### Supported Tasks and Leaderboards
MIR, audio classification
### Languages
Chinese, English
## Usage
### Default Subset
```python
from datasets import load_dataset
dataset = load_dataset("ccmusic-database/CTIS", split="train")
for item in dataset:
print(item)
```
### Eval Subset
```python
from datasets import load_dataset
dataset = load_dataset("ccmusic-database/CTIS", name="eval")
for item in ds["train"]:
print(item)
for item in ds["validation"]:
print(item)
for item in ds["test"]:
print(item)
```
### Data Instances
.zip(.wav), .csv
### Data Fields
219 Chinese instruments
<!-- ## Dataset Creation
### Curation Rationale
Lack of a dataset for Chinese traditional musical instruments
### Source Data
#### Initial Data Collection and Normalization
Zhaorui Liu, Monan Zhou
#### Who are the source language producers?
Students from CCMUSIC
### Annotations
#### Annotation process
Building a high-quality musical sound database requires consideration on every aspect of the criteria in terms of the recording environment, performer, sample content, annotation standard and quality of recording and performing.
#### Who are the annotators?
Students from CCMUSIC
## Considerations for Using the Data
### Social Impact of Dataset
Advancing the Digitization Process of Traditional Chinese Instruments
### Discussion of Biases
Only for Traditional Chinese Instruments
### Other Known Limitations
Sample imbalance -->
## Additional Information
### Dataset Curators
Zijin Li
### Evaluation
[1] [Liang, Xiaojing et al. “Constructing a Multimedia Chinese Musical Instrument Database.” Lecture Notes in Electrical Engineering (2019): n. pag.](https://link.springer.com/content/pdf/10.1007/978-981-13-8707-4_5.pdf)<br>
[2] [Li, R., & Zhang, Q. (2022). Audio recognition of Chinese traditional instruments based on machine learning. Cogn. Comput. Syst., 4, 108-115.](https://ietresearch.onlinelibrary.wiley.com/doi/pdf/10.1049/ccs2.12047)<br>
[3] <https://huggingface.co/ccmusic-database/CTIS><br>
[4] [Li Z, Liang X, Liu J, et al. DCMI: A Database of Chinese Musical Instruments[J].](https://dlfm.web.ox.ac.uk/sites/default/files/dlfm/documents/media/zijin-et-al-dcmi.pdf)
### Citation Information
```bibtex
@dataset{zhaorui_liu_2021_5676893,
author = {Monan Zhou, Shenyang Xu, Zhaorui Liu, Zhaowen Wang, Feng Yu, Wei Li and Baoqiang Han},
title = {CCMusic: an Open and Diverse Database for Chinese Music Information Retrieval Research},
month = {mar},
year = {2024},
publisher = {HuggingFace},
version = {1.2},
url = {https://huggingface.co/ccmusic-database}
}
```
### Contributions
An audio dataset for Chinese Instrument