摘要:This paper aims to develop a position tracking algorithm by which a rat in a radial arm maze can be accurately located in real time. An infrared (IR) night-vision camera was hung above the maze to capture IR images of the rat. The IR images were binarized and then duplicated for subsequent intersection and opening operations. Due to simple operations and a high robustness against the noise spots formed by the droppings of the rat, it took just minutes to process more than 9000 frames, and an accuracy above 99% was reached as well. The maze was intruded by an experimenter to further test the robustness, and the accuracy slightly fell to 98%. For comparison purposes, the same experiments were carried out using a pre-trained YOLO v2 model. The YOLO counterpart gave an accuracy beyond 97% in the absence and in the presence of the intruder. In other words, this work slightly outperformed the YOLO counterpart in terms of the accuracy in both cases, which indicates the robustness of this work. However, it took the YOLO counterpart an hour or so to locate a rat contained in the frames, which highlights the contribution of this work.