A cognitive monitoring system for contaminant detection in intelligent buildings