Machine learning-based approach for online fault Diagnosis of Discrete Event System