The perceptron is the simplest neural network, consisting of a single artificial neuron. Invented by Frank Rosenblatt in 1958, it was the first algorithm capable of learning to classify patterns from data.

Perceptrons find applications in civil engineering for binary decision tasks like pass/fail structural assessment, safe/unsafe load classification, and go/no-go construction decisions.
• Click the plot to add blue (class 0) or red (class 1) points, or use the dataset buttons for predefined examples
• Click "Step" to train one epoch—the perceptron tests each point and updates the decision boundary when it finds errors
• Adjust learning rate η to control update step size. Watch how the boundary moves to separate the classes

How many epochs does it take to converge for linearly separable data? What happens with non-separable data?
Decision boundary: The line β0+β1x1+β2x2=0 separating the two classes
Convergence: Training stops when no errors are made in an epoch (for linearly separable data)
Misclassified points: Highlighted during training to show which points caused weight updates
Learning rate: Higher η means faster but potentially unstable learning
Perceptron guarantee: Will always converge to a solution if data is linearly separable
Classification Plot
Clean
XOR
0.10
Training History
Epoch 0
Errors
β0 (bias) -0.096
β1 0.044
β2 0.011
Updates 0

Developed by Kevin Yu & Panagiotis Angeloudis