The science of smart bag