Datasets:
admin
commited on
Commit
·
3cce46b
1
Parent(s):
d8bbf83
upd md
Browse files
README.md
CHANGED
@@ -15,14 +15,39 @@ viewer: false
|
|
15 |
---
|
16 |
|
17 |
# Dataset Card for Chinese Traditional Instrument Sound
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
<style>
|
27 |
.ctis td {
|
28 |
vertical-align: middle !important;
|
@@ -45,21 +70,9 @@ Based on the aforementioned original dataset, after data processing, we have con
|
|
45 |
<td>C0090/<br>C0091/<br>...<br>T0323</td>
|
46 |
<td>大笒/<br>高音横笛/<br>...<br>都它尔</td>
|
47 |
</tr>
|
48 |
-
<tr>
|
49 |
-
<td>...</td>
|
50 |
-
<td>...</td>
|
51 |
-
<td>...</td>
|
52 |
-
<td>...</td>
|
53 |
-
</tr>
|
54 |
</table>
|
55 |
|
56 |
## Dataset Description
|
57 |
-
- **Homepage:** <https://ccmusic-database.github.io>
|
58 |
-
- **Repository:** <https://huggingface.co/datasets/ccmusic-database/CTIS>
|
59 |
-
- **Paper:** <https://doi.org/10.5281/zenodo.5676893>
|
60 |
-
- **Leaderboard:** <https://ccmusic-database.github.io/team.html>
|
61 |
-
- **Point of Contact:** <https://www.modelscope.cn/datasets/ccmusic-database/CTIS>
|
62 |
-
|
63 |
## Maintenance
|
64 |
```bash
|
65 |
git clone [email protected]:datasets/ccmusic-database/CTIS
|
@@ -69,19 +82,6 @@ cd CTIS
|
|
69 |
### Dataset Summary
|
70 |
During the integration, we first performed data cleaning to remove recordings with no specific instrument labels. The filtered dataset comprises recordings of 200 types of Chinese traditional musical instruments, totaling 3,974 audio clips. On average, there are approximately 20 audio clips per instrument. The data structure of the integrated dataset consists of three columns: an audio column containing audio files in .wav format, all sampled at a uniform rate of 22,050 Hz, a label column with 200 categories corresponding to the Chinese pinyin of the instrument names, and an additional column for the Chinese instrument names. This integrated dataset can be utilized for tasks such as Chinese instrument recognition or instrument acoustic analysis.
|
71 |
|
72 |
-
#### Totals 总量统计
|
73 |
-
| Statistical items 统计项 | Values 值 |
|
74 |
-
| :-----------------------------: | :-------------------: |
|
75 |
-
| Total count 总数据量 | `4956` |
|
76 |
-
| Total duration(s) 总时长(秒) | `117482.75025085069` |
|
77 |
-
| Mean duration(s) 平均时长(秒) | `23.705155417847124` |
|
78 |
-
| Min duration(s) 最短时长(秒) | `0.27639583333333334` |
|
79 |
-
| Max duration(s) 最长时长(秒) | `494.2522902494331` |
|
80 |
-
| Instrument types 乐器种类 | `209` |
|
81 |
-
| Label Numbers 标签数 | `219` |
|
82 |
-
| Class with max dur 最长时长类别 | `箜篌` |
|
83 |
-
| Eval subset total 评估子集总量 | `43054` |
|
84 |
-
|
85 |
### Supported Tasks and Leaderboards
|
86 |
MIR, audio classification
|
87 |
|
@@ -89,6 +89,7 @@ MIR, audio classification
|
|
89 |
Chinese, English
|
90 |
|
91 |
## Usage
|
|
|
92 |
```python
|
93 |
from datasets import load_dataset
|
94 |
|
@@ -97,6 +98,21 @@ for item in dataset:
|
|
97 |
print(item)
|
98 |
```
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
### Data Instances
|
101 |
.zip(.wav), .csv
|
102 |
|
@@ -124,9 +140,6 @@ Building a high-quality musical sound database requires consideration on every a
|
|
124 |
#### Who are the annotators?
|
125 |
Students from CCMUSIC
|
126 |
|
127 |
-
### Personal and Sensitive Information
|
128 |
-
None
|
129 |
-
|
130 |
## Considerations for Using the Data
|
131 |
### Social Impact of Dataset
|
132 |
Advancing the Digitization Process of Traditional Chinese Instruments
|
@@ -142,15 +155,16 @@ Sample imbalance
|
|
142 |
Zijin Li
|
143 |
|
144 |
### Evaluation
|
145 |
-
[1] [
|
146 |
-
[2] [
|
147 |
-
[3]
|
|
|
148 |
|
149 |
### Citation Information
|
150 |
```bibtex
|
151 |
@dataset{zhaorui_liu_2021_5676893,
|
152 |
author = {Monan Zhou, Shenyang Xu, Zhaorui Liu, Zhaowen Wang, Feng Yu, Wei Li and Baoqiang Han},
|
153 |
-
title = {CCMusic: an Open and Diverse Database for Chinese
|
154 |
month = {mar},
|
155 |
year = {2024},
|
156 |
publisher = {HuggingFace},
|
|
|
15 |
---
|
16 |
|
17 |
# Dataset Card for Chinese Traditional Instrument Sound
|
18 |
+
## Original Content
|
19 |
+
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.
|
20 |
+
|
21 |
+
## Integration
|
22 |
+
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. The filtered dataset contains recordings of 209 types of Chinese traditional musical instruments. Compared to the original 287 instrument types, 78 were removed. 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.
|
23 |
+
|
24 |
+
In the original dataset, the Chinese character label for each instrument was represented by the folder name housing its audio files.
|
25 |
+
During integration, we add Chinese pinyin label to make the dataset more accessible to researchers who are not familiar in Chinese.
|
26 |
+
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.
|
27 |
+
|
28 |
+
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.
|
29 |
+
|
30 |
+
## Statistics
|
31 |
+
|  |  |
|
32 |
+
| :--------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------: |
|
33 |
+
| **Fig. 1** | **Fig. 2** |
|
34 |
+
|
35 |
+
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 other datasets. Instead, we provide a chart showing the distribution of the number of audio clips across different durations, as shown in **Fig. 1**. Along with a chart, displayed in **Fig. 2**, showing the instrument categories distribution across various durations. From **Fig. 1**, 4,277 clips (86%) are concentrated in the 0-45 second range, with a steep drop in the number of samples in longer durations. For the longest duration interval (450-495 seconds), the corresponding category is Konghou only. In **Fig. 2**, the audio duration of 211 instrument categories is less than 1755 seconds. While 8 classes have audio duration longer than this. The single instrument that possesses the longest audio duration is Zhongruan. This indicates that there is only a slight class imbalance problem for this dataset.
|
36 |
+
|
37 |
+
| Statistical items | Values |
|
38 |
+
| :------------------------------------------: | :-------------------: |
|
39 |
+
| Total count | `4956` |
|
40 |
+
| Total duration(s) | `117482.75025085056` |
|
41 |
+
| Mean duration(s) | `23.705155417847124` |
|
42 |
+
| Min duration(s) | `0.27639583333333334` |
|
43 |
+
| Max duration(s) | `494.2522902494331` |
|
44 |
+
| Instrument types | `209` |
|
45 |
+
| Label Numbers | `219` |
|
46 |
+
| Eval subset total | `43054` |
|
47 |
+
| Class with the longest audio duartion | `中阮` |
|
48 |
+
| Class in the longest audio duartion interval | `箜篌` |
|
49 |
+
|
50 |
+
## Default Subset Structure
|
51 |
<style>
|
52 |
.ctis td {
|
53 |
vertical-align: middle !important;
|
|
|
70 |
<td>C0090/<br>C0091/<br>...<br>T0323</td>
|
71 |
<td>大笒/<br>高音横笛/<br>...<br>都它尔</td>
|
72 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
</table>
|
74 |
|
75 |
## Dataset Description
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
## Maintenance
|
77 |
```bash
|
78 |
git clone [email protected]:datasets/ccmusic-database/CTIS
|
|
|
82 |
### Dataset Summary
|
83 |
During the integration, we first performed data cleaning to remove recordings with no specific instrument labels. The filtered dataset comprises recordings of 200 types of Chinese traditional musical instruments, totaling 3,974 audio clips. On average, there are approximately 20 audio clips per instrument. The data structure of the integrated dataset consists of three columns: an audio column containing audio files in .wav format, all sampled at a uniform rate of 22,050 Hz, a label column with 200 categories corresponding to the Chinese pinyin of the instrument names, and an additional column for the Chinese instrument names. This integrated dataset can be utilized for tasks such as Chinese instrument recognition or instrument acoustic analysis.
|
84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
### Supported Tasks and Leaderboards
|
86 |
MIR, audio classification
|
87 |
|
|
|
89 |
Chinese, English
|
90 |
|
91 |
## Usage
|
92 |
+
### Default Subset
|
93 |
```python
|
94 |
from datasets import load_dataset
|
95 |
|
|
|
98 |
print(item)
|
99 |
```
|
100 |
|
101 |
+
### Eval Subset
|
102 |
+
```python
|
103 |
+
from modelscope.msdatasets import MsDataset
|
104 |
+
|
105 |
+
ds = MsDataset.load("ccmusic-database/CTIS", subset_name="eval")
|
106 |
+
for item in ds["train"]:
|
107 |
+
print(item)
|
108 |
+
|
109 |
+
for item in ds["validation"]:
|
110 |
+
print(item)
|
111 |
+
|
112 |
+
for item in ds["test"]:
|
113 |
+
print(item)
|
114 |
+
```
|
115 |
+
|
116 |
### Data Instances
|
117 |
.zip(.wav), .csv
|
118 |
|
|
|
140 |
#### Who are the annotators?
|
141 |
Students from CCMUSIC
|
142 |
|
|
|
|
|
|
|
143 |
## Considerations for Using the Data
|
144 |
### Social Impact of Dataset
|
145 |
Advancing the Digitization Process of Traditional Chinese Instruments
|
|
|
155 |
Zijin Li
|
156 |
|
157 |
### Evaluation
|
158 |
+
[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>
|
159 |
+
[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>
|
160 |
+
[3] <https://www.modelscope.cn/models/ccmusic-database/CTIS><br>
|
161 |
+
[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)
|
162 |
|
163 |
### Citation Information
|
164 |
```bibtex
|
165 |
@dataset{zhaorui_liu_2021_5676893,
|
166 |
author = {Monan Zhou, Shenyang Xu, Zhaorui Liu, Zhaowen Wang, Feng Yu, Wei Li and Baoqiang Han},
|
167 |
+
title = {CCMusic: an Open and Diverse Database for Chinese Music Information Retrieval Research},
|
168 |
month = {mar},
|
169 |
year = {2024},
|
170 |
publisher = {HuggingFace},
|