Beta
274526

Confusion Matrix in Binary Classification Problems: A Step-by-Step Tutorial

Article

Last updated: 23 Jan 2023

Subjects

-

Tags

Computer Science and Engineering

Abstract

In the field of machine learning, the confusion matrix is a specific table adopted to describe and assess the performance of a classification model (e.g. an artificial neural network) for a set of test data whose actual distinguishing features are known. The learning algorithm is thus of the supervised learning category. For an n-class classification problem, the confusion matrix is square with n rows and n columns. The rows represent the class actual samples (instances) which are the inputs to the classifier, while the columns represent the class predicted samples, the classifier outputs. (The converse is also valid, i.e. the two dimensions 'actual' and 'predicted' can be assigned to columns and rows, respectively). Binary as well as multiple-class classifiers can be dealt with. It is worth noting that the term 'matrix' here has nothing to do with the theorems of matrix algebra; it is regarded just as an information-conveying table. The descriptive word ‘confusion' stems from the fact that the matrix clarifies to what extent the model confuses the classes — mislabels one as another. The essential concept was introduced in 1904 by the British statistician Karl Pearson (1857 — 1936).

DOI

10.21608/erjeng.2022.274526

Keywords

Machine Learning, Confusion matrix, accuracy, Recall, specificity, Precision, True Negative, False Positive, Balanced Accuracy

Authors

First Name

Mahmoud

Last Name

Fahmy Amin

MiddleName

M

Affiliation

Professor of Computer and Control Engineering

Email

m.fahmy@f-eng.tanta.edu.eg

City

TANTA

Orcid

-

Volume

6

Article Issue

5

Related Issue

38093

Issue Date

2022-12-01

Receive Date

2022-12-17

Publish Date

2022-12-01

Print ISSN

2356-9441

Online ISSN

2735-4873

Link

https://erjeng.journals.ekb.eg/article_274526.html

Detail API

https://erjeng.journals.ekb.eg/service?article_code=274526

Order

2

Publication Type

Journal

Publication Title

Journal of Engineering Research

Publication Link

https://erjeng.journals.ekb.eg/

MainTitle

-

Details

Type

Article

Created At

23 Jan 2023