A modern twist on classic mass spectrometers could soon help detect rogue methane leaks, hidden explosives and much more. With the help of modern data analytics, researchers show that a technology using a so-called 'coded aperture' can shrink these devices while maintaining their performance.