Neural network with electrical signals