Feature space reduction and parameter optimization with application to semi-supervised water pollutant classification