WCE is a popular alternative to conventional endoscopy for the examination of the gastrointestinal tract due to its non-invasiveness and ease to use. However, the passive locomotion of current WCE has limited its use. SMAL is a promising technology that can endow the capsule with the capability of active locomotion and accurate localization, which has the potential to reduce the inspection time and improve the diagnostic accuracy.This thesis addresses several challenges associated with active WCE by proposing advanced SMAL systems and techniques for automatic navigation of a robotic capsule, aiming at performing efficient and safe propulsion, trajectory following and real-time localization based on the magnetic fields.First, we develop the ...