An expert system for interpreting speech patterns