The state of small rail of track circuit is an important factor affecting the safety of train operation. Based on the working principle of occupancy check of small rail included in track section, this paper studies the occupancy check technology in different application scenarios of relay coded and communication coded track circuits, and proposes optimization suggestions for problems in engineering applications.