Skip to main content
. 2020 Mar 17;11(1):1726672. doi: 10.1080/20008198.2020.1726672

Table 3.

Performance metrics and functions.

Metric (M) Description Function
Accuracy Proportion of correctly classified segments tp+tntp+fn+fp+tn
Precision Proportion of correctly identified positive segments tptp+fp
Recall Proportion of positive segments identified tptp+fn
F1-score Harmonic mean of precision and recall 2precisionrecallprecision+recall

tp = true positives for each class, where true and predicted label are both positive. tn = true negatives for each class, where true and predicted label are both negative. fp = false positives for each class, where the true label is negative but predicted label is positive. fn = false negatives for each class, where the true label is positive but predicted label is negative.