Determination of toxic gases based on the responses of a single electrocatalytic sensor and pattern recognition techniques