An improved MSD-based method for PD pattern recognition