The principle behind AMS involves the ionization of aerosol particles followed by mass analysis. The particles are first sampled and introduced into the spectrometer. They are then desolvated, vaporized, and ionized, typically using laser or thermal methods. The resulting ions are analyzed by a mass spectrometer, providing detailed information on their mass-to-charge ratio.