Numerical analysis of the time series magnetic fields in solar active regions for solar flare forecasting