Machine learning techniques to forecast non-linear trends in smart environments