The detection of gas emission levels is a crucial problem for ecology and human health. Hyperspectral image analysis offers many advantages over traditional gas detection systems with its detection capability from safe distances. Observing that the existing hyperspectral gas detection methods in thermal range neglect the fact that the captured radiance in longwave infrared (LWIR) spectrum is better modelled as a mixture of the radiance of background and target gases, we propose a deep learning based hyperspectral gas detection method in this paper, which combines unmixing and classification. The proposed method first converts the radiance data to luminance-temperature data. Then, a 3D convolutional neural network and autoencoder-based network, which is specially designed for unmixing, is applied to the resulting data to acquire abundances and endmembers for each pixel. Finally, the detection is achieved by a three-layer fully connected network to detect the target gases at each pixel based on the extracted endmember spectra and abundance values. The superior performance of the proposed method with respect to the conventional hyperspectral gas detection methods using spectral angle mapper (SAM) and adaptive cosine estimator (ACE) is verified with LWIR hyperspectral images including Methane and Sulphur Dioxide gases. In addition, the ablation study with respect to different combinations of the proposed structure including direct classification and unmixing methods has revealed the contribution of the proposed system.