The Use of Self-Learning Systems to Solve the Problems of Finding Failures on the Railway