AI Logic

Glossary

Perceptron

Updated:

The left shows how a perceptron works: lines with weights w₁, w₂, w₃ run from the three inputs x₁, x₂, x₃ at the bottom into Σ (weighted sum) above, which is then compared with a threshold θ; the output y is 1 if the sum exceeds θ and 0 otherwise. The right shows examples with two inputs: the left graph is a case where class 1 (filled points) and class 0 (white points) can be separated by the dashed straight line w₁x₁ + w₂x₂ = θ, and the right graph is XOR, where diagonally opposite pairs of points belong to the same class and no straight line can separate them into two groups.

Explanation

A perceptron is one of the most basic types of artificial neuron, a model designed to solve simple binary classification problems. It multiplies the input signals by weights, sums them, and passes the result through an activation function to determine the output. Proposed by Frank Rosenblatt in 1958, the perceptron is known as a linear classifier. Concretely, each input feature is multiplied by a weight (w), the weighted sum is computed, and the output is class 1 if the sum exceeds a threshold and class 0 otherwise. Because the perceptron therefore has a simple linear boundary, it is effective on linearly separable datasets but has limited performance on nonlinear data.

Where It Is Used

Perceptrons are mainly used for the following purposes. First, in binary classification, they are applied to simple binary classification problems such as spam detection and image recognition. Next, as a foundational technology for neural networks, they serve as the basic unit when extended to models such as the multilayer perceptron (MLP). In education, they are sometimes used as introductory material for machine learning and deep learning, as a model for learning the basic workings of neurons and the mechanisms of learning. They also serve as a foundation for linear regression and classification problems, and their ideas are applied in linear models and logistic regression. Because of their simplicity, perceptrons are easy to understand and play an important role in learning the basic concepts of machine learning.

FAQ

Q. How does a perceptron work?
A.

It is a simple classifier that multiplies each input by a weight, adds them up, and outputs 1 if the sum exceeds a threshold and 0 if it does not.

Q. What problems can it be used for?
A.

It can be used for linearly separable binary classification tasks, for example, problems that determine whether a certain feature is present or not.

Q. Is it still used today?
A.

It is rarely used on its own, but it forms the basis of neural networks and plays an important role in education and as a building block of multilayer models.