Computer-aided analysis of discharge patterns