Railway systems are essential to the movement of goods and people across countries and continents, playing a vital role in transportation and logistics. Among the various components of a railway system, the gauge, which is the distance between the inner sides of two parallel rails, defines the size and stability.