On applying machine learning techniques for design pattern detection