How can data improve train travel?

For millions of people trains are an annoying fact of life: Sure, they get you from A to B, but it never really is quite that simple, with delays, engineering and overcrowded carriages. Surely something can be done? Even when times are tight economically, isn't there a way that train companies can behave a little…