The role of railway transport in the modern economy is highlighted in the article. Directions for improving automation and telemechanics devices have been determined: the creation and implementation of modern devices for monitoring track occupancy of a new type, as well as increasing the reliability of track devices to a large extent, and putting into operation systems for interval regulation of train traffic. The importance of such an element of the railway infrastructure as a rail circuit is also determined. The authors of the work revealed the function of track circuits. In addition to this, the article presents an information diagram of the search for failures in an extensive rail circuit of electrical centralization. The concept of a decision device is disclosed. Possible expressions of the Bayes criterion are also considered. A priori probabilities of finding rail lines are singled out. As a result, a decision rule is revealed that leads to the minimization of the average damage.