Modeling and forecasting of the state of the environment