Automatic classification and identification algorithms for single-environment risk and their application in social changes