Investigating the dark matter signal in the cosmic ray antiproton flux with the machine learning method