Practical connection between potential fields and neural networks