Sensory-motor neural loop discovering statistical dependences among imperfect sensory perception and motor response