<p>Neural networks can give an approximation of any function. The only consideration to do is the dimensionality of the search space, which give constraints to the amount of data you have to get a good approximation.</p>

<p>For a supervised network (you use autoencoders, then I think you use some variant of backpropagation), it's difficult for me to immagine how you think to do the trainig using single positions because you need similar positions in your training set. Maybe your approach is different, but I'm convinced that second strategy (using features) is more promising. I think using positions require a huge amount of data training to get good results.</p>

<p>For features take a look <a href="http://chessprogramming.wikispaces.com/Evaluation" rel="nofollow">here</a>, and to the classical work of <a href="http://vision.unipv.it/IA1/ProgrammingaComputerforPlayingChess.pdf" rel="nofollow">Shannon</a>.</p>

<p>I taked also useful informations from the source code of <a href="http://www.craftychess.com/" rel="nofollow">Crafty</a>.</p>

<p>But you have to extract these informations from the FEN string.</p>

<p>Autoencoders are a way to give a reduction of data (good because increase performances). It seems to be better the use of Pincipal Component Analysys, as reported <a href="http://arxiv.org/pdf/0709.2506.pdf" rel="nofollow">here</a>.</p>

<p>I hope this can help you.</p>
Automatic feature extraction from chess board positions
<p>I am working on a project where I take a chess board position (FEN string converted to binary) &amp; it's evaluation score and feed it to a neural network. My aim is to make the neural network differentiate between good and bad positions.</p>

<p><strong>How I encode the position :</strong> There are 12 unique pieces in chess i.e pawn, rook, knight, bishop, queen and king for <em>white</em> as well as <em>black</em>. I encode each piece using 4 bits with 0000 denoting an empty square. So the 64 squares are encoded into 256 bits and I use 6 more bits to denote game state like whose turn it is to move, king-castle status, etc. </p>

<p><strong>Problem :</strong> Since the input space for chess positions is neither smooth nor uni-modal (one small change in the board position can result in a huge change in the evaluation score), the neural network doesn't learn well. Now, the next logical thing to somehow extract useful features (like material difference, center control, etc) and feed it to the network.</p>

<p>I do not want to hand pick the features as I want the network to learn everything by itself.  Therefore I am thinking of extracting features automatically using <em>autoencoders</em>. Is there any better way to accomplish this?</p>

<p><strong>Summary :</strong> What is the best way to automatically extract features from a chess board position so that it can be fed into a neural network?</p>

<p><strong>UPDATE :</strong> To generate training data, I have modified Stockfish to dump it's evaluation process into a log file. So every new move(position) it considers is written to a file as an FEN string along with it's eval score</p>