Determination of electrochemical parameters for predicting reaction mechanism and algorithmic approaches to pain assessment