Analysis of environmental factors using AI and ML methods