Gravar-mail: New PCA-based category encoder for efficient data processing in IoT devices