Fault diagnostics using expert systems