A system comprising: a multispectral imaging device operable to capture images of a field of view at different wavelengths; and an electronic processing device coupled to the multispectral imaging device , wherein the processing device comprises a processor , a memory , and a user interface , and wherein the processing device is operable to: save the multispectral images to the memory for access by the processor , apply a calibration to each spectral image of a plurality of spectral images such that the intensity of a pixel is transformed to spectral intensity; apply one or more segmentation techniques to find segmented regions in each spectral image; combine the segmented regions from the spectral images to generate regions that have distinct spectral characteristics; estimate background parameters of each pixel in each region based on spatial and spectral intensities; compute background spectral intensities based on the estimated background parameters; compute foreground spectral intensities by subtracting input intensity from the corresponding background intensity; evaluate the results for identification of an incident based on the computed foreground spectral intensities; and generate an alarm when the foreground spectral intensities indicates a fire or gas leakage. a multispectral imaging device operable to capture images of a field of view at different wavelengths; and an electronic processing device coupled to the multispectral imaging device , wherein the processing device comprises a processor , a memory , and a user interface , and wherein the processing device is operable to: save the multispectral images to the memory for access by the processor , apply a calibration to each spectral image of a plurality of spectral images such that the intensity of a pixel is transformed to spectral intensity; apply one or more segmentation techniques to find segmented regions in each spectral image; combine the segmented regions from the spectral images to generate regions that have distinct spectral characteristics; estimate background parameters of each pixel in each region based on spatial and spectral intensities; compute background spectral intensities based on the estimated background parameters; compute foreground spectral intensities by subtracting input intensity from the corresponding background intensity; evaluate the results for identification of an incident based on the computed foreground spectral intensities; and generate an alarm when the foreground spectral intensities indicates a fire or gas leakage. save the multispectral images to the memory for access by the processor , apply a calibration to each spectral image of a plurality of spectral images such that the intensity of a pixel is transformed to spectral intensity; apply one or more segmentation techniques to find segmented regions in each spectral image; combine the segmented regions from the spectral images to generate regions that have distinct spectral characteristics; estimate background parameters of each pixel in each region based on spatial and spectral intensities; compute background spectral intensities based on the estimated background parameters; compute foreground spectral intensities by subtracting input intensity from the corresponding background intensity; evaluate the results for identification of an incident based on the computed foreground spectral intensities; and generate an alarm when the foreground spectral intensities indicates a fire or gas leakage. <EOS>