Neural networks and rule-based systems