A Novel Approach for Automatic State Detection of A Magnetically Actuated Capsule | IEEE Conference Publication | IEEE Xplore