Solar Flare Prediction with Time Series Analysis of HMI Data