Published October 1, 2020 | Version 2.0
Dataset Open

Written and spoken digits database for multimodal learning

  • 1. Université Côte d'Azur, CNRS, LEAT, France


Database description:

The written and spoken digits database is not a new database but a constructed database from existing ones, in order to provide a ready-to-use database for multimodal fusion [1].

The written digits database is the original MNIST handwritten digits database [2] with no additional processing. It consists of 70000 images (60000 for training and 10000 for test) of 28 x 28 = 784 dimensions.

The spoken digits database was extracted from Google Speech Commands [3], an audio dataset of spoken words that was proposed to train and evaluate keyword spotting systems. It consists of 105829 utterances of 35 words, amongst which 38908 utterances of the ten digits (34801 for training and 4107 for test). A pre-processing was done via the extraction of the Mel Frequency Cepstral Coefficients (MFCC) with a framing window size of 50 ms and frame shift size of 25 ms. Since the speech samples are approximately 1 s long, we end up with 39 time slots. For each one, we extract 12 MFCC coefficients with an additional energy coefficient. Thus, we have a final vector of 39 x 13 = 507 dimensions. Standardization and normalization were applied on the MFCC features.

To construct the multimodal digits dataset, we associated written and spoken digits of the same class respecting the initial partitioning in [2] and [3] for the training and test subsets. Since we have less samples for the spoken digits, we duplicated some random samples to match the number of written digits and have a multimodal digits database of 70000 samples (60000 for training and 10000 for test).

The dataset is provided in six files as described below. Therefore, if a shuffle is performed on the training or test subsets, it must be performed in unison with the same order for the written digits, spoken digits and labels.



  • data_wr_train.npy: 60000 samples of 784-dimentional written digits for training;
  • data_sp_train.npy: 60000 samples of 507-dimentional spoken digits for training;
  • labels_train.npy: 60000 labels for the training subset;
  • data_wr_test.npy: 10000 samples of 784-dimentional written digits for test;
  • data_sp_test.npy: 10000 samples of 507-dimentional spoken digits for test;
  • labels_test.npy: 10000 labels for the test subset.



  1. Khacef, L. et al. (2020), "Brain-Inspired Self-Organization with Cellular Neuromorphic Computing for Multimodal Unsupervised Learning".
  2. LeCun, Y. & Cortes, C. (1998), “MNIST handwritten digit database”.
  3. Warden, P. (2018), “Speech Commands: A Dataset for Limited-Vocabulary Speech Recognition”.


Files (723.5 MB)

Name Size Download all
40.6 MB Download
243.4 MB Download
62.7 MB Download
376.3 MB Download
80.1 kB Download
480.1 kB Download

Additional details


  • LeCun, Y. & Cortes, C. (1998), "MNIST handwritten digit database".
  • Warden, P. (2018), "Speech Commands: A Dataset for Limited-Vocabulary Speech Recognition".