Chessboard Classifier
Overview
A classical machine learning system developed as part of a university module to classify full chessboard states from images. The project explores statistical feature extraction and domain-specific constraints to reliably reconstruct legal board configurations.
What I did
Images were processed through a PCA–LDA feature extraction pipeline and classified using a custom Weighted K-Nearest Neighbour model. To reduce classification errors that result in impossible positions, chess legality rules were applied to the model output to enforce valid board states. To support training and evaluation, I built a synthetic data generator that produces labelled board images from FEN strings. I also developed a Streamlit web application to visualise predictions and interactively test the system. On clean input data, the model achieved 99.6% classification accuracy, demonstrating that classical statistical methods combined with domain knowledge can perform well on structured visual problems.