Text this: Mathematical model for the analysis of environmental risk factors