Multiple Instance Learning for Efficient Sequential Data Classification on Resource-constrained Devices