The article discusses issues of train traffic safety. When considering competitive advantage when choosing modes of transport, special attention is paid to such a criterion as the quality of the services provided. One of the characteristics of the quality of railway transport services is the safety of train traffic. A questionnaire was conducted to identify the causes of traffic safety violations, and the main causes of non-standard situations were identified. One of the reasons for traffic safety violations is the human factor. It is proposed to reduce cases of non-standard and emergency situations through the introduction of digital automation technologies, such as the “shunting automatic locomotive alarm” (MALS) system. The technology relates to the field of railway automation, which can be implemented for use on locomotives in order to improve traffic safety, through competent regulation of train movement, as well as shunting work at the railway station. Timely control eliminates the transmission of erroneous (incorrect) information to the MALS, which eliminates the formation of false commands in locomotives and thereby reduces the number of non-standard and emergency situations in transport. This system will allow for a comprehensive modernization of existing signaling devices, automation of shunting work and more rational use of locomotives at the station, thereby improving the logistics process.