MagSafe accessory classification using magnetometer | IEEE Conference Publication | IEEE Xplore