Algorithm on nature erosion in digital age