A laser interferometer, such as a dual path Michelson interferometer, is used to generate fringe patterns resulting from one of a plurality of optical paths passing through a sample gas. An artificial neural network, such as, for example, a KASER neural network, is used to recognize patterns in the fringe interference patterns corresponding to known target gases.