Adaptive generative adjustable electric fence method and internal obstacle detection · Study