An Approach to Qualitative Modeling using Neural Networks