background thread that does intelligent data analysis