For submillimeter spectroscopy with ground-based single-dish telescopes, removing the noise contribution from the Earth's atmosphere and the instrument is essential. For this purpose, here we propose a new method based on a data-scientific approach. …