Neural network approach to sensor design