A comparison between nature-inspired and machine learning approaches to detecting trend reversals in financial time series