Gravar-mail: Data-Driven Learning of Q-Matrix