Statistics for Interrupted time series and machine learning with application to effect of Influenza Vaccine